starrocks

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 21 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package starrocks is the plugin for the StarRocks and Doris drivers. Both engines speak the MySQL wire protocol and share one schema-sync implementation; they differ only in their system databases and their materialized-view catalog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is the StarRocks/Doris driver.

func (*Driver) Close

func (d *Driver) Close(context.Context) error

Close closes the driver.

func (*Driver) GetDB

func (d *Driver) GetDB() *sql.DB

GetDB gets the database.

func (*Driver) GetObjectDefinition

func (d *Driver) GetObjectDefinition(ctx context.Context, objectType storepb.MetaType, _ string, name string) (string, bool, error)

GetObjectDefinition returns the server's own DDL for an object. The catalog metadata cannot express StarRocks/Doris distribution, properties or partitioning, so the definition has to come from the server rather than being reconstructed.

schema is unused deliberately: StarRocks and Doris have exactly one schema per database and the driver is connected to it, so d.databaseName already names the container. The parameter exists for engines with several schemas per database.

func (*Driver) Open

func (d *Driver) Open(ctx context.Context, dbType storepb.Engine, connCfg db.ConnectionConfig) (db.Driver, error)

Open opens a StarRocks/Doris driver.

func (*Driver) Ping

func (d *Driver) Ping(ctx context.Context) error

Ping pings the database.

func (*Driver) SyncDBSchema

func (d *Driver) SyncDBSchema(ctx context.Context) (metadata *storepb.DatabaseSchemaMetadata, err error)

SyncDBSchema syncs a single database schema. A database the target no longer has is reported as common.NotFound, which is what tells a caller mirroring the target's inventory apart from a permission or connectivity failure.

func (*Driver) SyncInstance

func (d *Driver) SyncInstance(ctx context.Context) (*db.InstanceMetadata, error)

SyncInstance syncs the instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL