starrocks

package
v0.0.0-...-b8497f2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "starrocks"

PluginName exported

View Source
const PluginVersion = "1.0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkExecutor

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

func NewBenchmarkExecutor

func NewBenchmarkExecutor(conn *sql.DB) *BenchmarkExecutor

func (*BenchmarkExecutor) ExecuteQuery

type StarRocksConverter

type StarRocksConverter struct{}

StarRocksConverter handles schema conversion from generic/MySQL to StarRocks.

func NewSchemaConverter

func NewSchemaConverter() *StarRocksConverter

NewSchemaConverter creates a new instance of StarRocksConverter.

func (*StarRocksConverter) ConvertSchema

func (c *StarRocksConverter) ConvertSchema(source *models.Schema) (*models.Schema, error)

ConvertSchema converts the source schema to a StarRocks compatible schema.

type StarRocksPlugin

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

StarRocksPlugin implements the DatabasePlugin interface.

func New

func New() *StarRocksPlugin

New creates a new instance of StarRocksPlugin.

func (*StarRocksPlugin) ConvertSchema

func (p *StarRocksPlugin) ConvertSchema(schema *models.Schema) (*models.Schema, error)

ConvertSchema converts a schema to StarRocks schema.

func (*StarRocksPlugin) ExecuteQuery

func (*StarRocksPlugin) GetBenchmarkExecutor

func (p *StarRocksPlugin) GetBenchmarkExecutor() (*BenchmarkExecutor, error)

GetBenchmarkExecutor returns the benchmark executor.

func (*StarRocksPlugin) GetName

func (p *StarRocksPlugin) GetName() string

GetName alias for interface compatibility

func (*StarRocksPlugin) Name

func (p *StarRocksPlugin) Name() string

Name returns the name of the plugin.

func (*StarRocksPlugin) TranslateQuery

func (p *StarRocksPlugin) TranslateQuery(sql string) (string, error)

TranslateQuery translates a SQL query to StarRocks dialect.

func (*StarRocksPlugin) Version

func (p *StarRocksPlugin) Version() string

Version returns the version of the plugin.

type StarRocksTranslator

type StarRocksTranslator struct{}

StarRocksTranslator handles query translation from MySQL dialect to StarRocks dialect.

func (*StarRocksTranslator) Translate

func (t *StarRocksTranslator) Translate(sql string) (string, error)

Translate adapts the SQL query for StarRocks.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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