Documentation
¶
Index ¶
- func NewColumnCheckOperator(manager config.ConnectionGetter) *ansisql.ColumnCheckOperator
- func NewMaterializer(fullRefresh bool) *pipeline.Materializer
- type AcceptedValuesCheck
- type BasicOperator
- type Client
- func (c *Client) BuildTableExistsQuery(tableName string) (string, error)
- func (c *Client) CreateSchemaIfNotExist(ctx context.Context, asset *pipeline.Asset) error
- func (c *Client) GetDatabaseSummary(ctx context.Context) (*ansisql.DBDatabase, error)
- func (c *Client) GetIngestrURI() (string, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) RunQueryWithoutResult(ctx context.Context, query *query.Query) error
- func (c *Client) Select(ctx context.Context, queryObj *query.Query) ([][]interface{}, error)
- func (c *Client) SelectWithSchema(ctx context.Context, queryObj *query.Query) (*query.QueryResult, error)
- type Config
- type DB
- type PatternCheck
- type Querier
- type SeedOperator
- type Selector
- type StarRocksConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewColumnCheckOperator ¶ added in v0.11.681
func NewColumnCheckOperator(manager config.ConnectionGetter) *ansisql.ColumnCheckOperator
func NewMaterializer ¶ added in v0.11.681
func NewMaterializer(fullRefresh bool) *pipeline.Materializer
Types ¶
type AcceptedValuesCheck ¶ added in v0.11.681
type AcceptedValuesCheck struct {
// contains filtered or unexported fields
}
func (*AcceptedValuesCheck) Check ¶ added in v0.11.681
func (c *AcceptedValuesCheck) Check(ctx context.Context, ti *scheduler.ColumnCheckInstance) error
type BasicOperator ¶ added in v0.11.681
type BasicOperator struct {
// contains filtered or unexported fields
}
func NewBasicOperator ¶ added in v0.11.681
func NewBasicOperator(conn config.ConnectionGetter, extractor query.QueryExtractor, fullRefresh bool, hoister pipeline.DeclareHoister, parser *sqlparser.SQLParser) *BasicOperator
func (BasicOperator) Run ¶ added in v0.11.681
func (o BasicOperator) Run(ctx context.Context, ti scheduler.TaskInstance) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(c StarRocksConfig) (*Client, error)
func NewClientWithContext ¶ added in v0.11.681
func NewClientWithContext(_ context.Context, c StarRocksConfig) (*Client, error)
func (*Client) BuildTableExistsQuery ¶ added in v0.11.681
func (*Client) CreateSchemaIfNotExist ¶ added in v0.11.681
func (*Client) GetDatabaseSummary ¶ added in v0.11.681
func (*Client) GetIngestrURI ¶
func (*Client) RunQueryWithoutResult ¶ added in v0.11.681
func (*Client) SelectWithSchema ¶ added in v0.11.681
type Config ¶
type Config struct {
Username string // Required
Password string // Optional
Host string // Required
Port int // Optional - defaults to 9030 (FE MySQL protocol port)
Database string // Optional - default database for unqualified table names
Catalog string // Optional - external lakehouse catalog (Iceberg/Hudi/Hive/...)
SSL string // Optional - "true" or "skip-verify" to enable TLS
HTTPPort int // Optional - FE HTTP port for Stream Load when used as a destination
ReplicationNum int // Optional - replica count for tables created as a destination
}
func (Config) GetIngestrURI ¶
GetIngestrURI builds starrocks://user:pass@host:port/[catalog/]database?ssl=... A lone database maps to the internal catalog; catalog is prefixed only when a database is also set, matching ingestr's [catalog/]database path handling.
func (Config) ToDBConnectionURI ¶ added in v0.11.681
ToDBConnectionURI builds a go-sql-driver/mysql DSN for StarRocks, which speaks the MySQL wire protocol on its FE query port (9030 by default). The SSL field carries a driver-native tls mode ("true"/"skip-verify"/"preferred"), so it is forwarded straight to the driver's built-in tls parameter without registering a custom TLS config.
type PatternCheck ¶ added in v0.11.681
type PatternCheck struct {
// contains filtered or unexported fields
}
func (*PatternCheck) Check ¶ added in v0.11.681
func (c *PatternCheck) Check(ctx context.Context, ti *scheduler.ColumnCheckInstance) error
type SeedOperator ¶ added in v0.11.681
type SeedOperator struct {
// contains filtered or unexported fields
}
func NewSeedOperator ¶ added in v0.11.681
func NewSeedOperator(conn config.ConnectionGetter, renderer jinja.RendererInterface) *SeedOperator
func (SeedOperator) Run ¶ added in v0.11.681
func (o SeedOperator) Run(ctx context.Context, ti scheduler.TaskInstance) error
type StarRocksConfig ¶ added in v0.11.681
StarRocksConfig is the driver-level config the client depends on. It is implemented by the package-local Config (see config.go).