Documentation
¶
Index ¶
- type Connection
- func (c *Connection) All(ctx context.Context, like string, pageSize uint32, pageToken string) ([]*drivers.OlapTable, string, error)
- func (c *Connection) AsAI(instanceID string) (drivers.AIService, bool)
- func (c *Connection) AsAdmin(instanceID string) (drivers.AdminService, bool)
- func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
- func (c *Connection) AsFileStore() (drivers.FileStore, bool)
- func (c *Connection) AsInformationSchema() (drivers.InformationSchema, bool)
- func (c *Connection) AsModelExecutor(instanceID string, opts *drivers.ModelExecutorOptions) (drivers.ModelExecutor, error)
- func (c *Connection) AsModelManager(instanceID string) (drivers.ModelManager, bool)
- func (c *Connection) AsNotifier(properties map[string]any) (drivers.Notifier, error)
- func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
- func (c *Connection) AsObjectStore() (drivers.ObjectStore, bool)
- func (c *Connection) AsRegistry() (drivers.RegistryStore, bool)
- func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
- func (c *Connection) AsWarehouse() (drivers.Warehouse, bool)
- func (c *Connection) Close() error
- func (c *Connection) Config() map[string]any
- func (c *Connection) Dialect() drivers.Dialect
- func (c *Connection) Driver() string
- func (c *Connection) Exec(ctx context.Context, stmt *drivers.Statement) error
- func (c *Connection) GetTable(ctx context.Context, database, databaseSchema, table string) (*drivers.TableMetadata, error)
- func (c *Connection) InformationSchema() drivers.OLAPInformationSchema
- func (c *Connection) ListDatabaseSchemas(ctx context.Context, pageSize uint32, pageToken string) ([]*drivers.DatabaseSchemaInfo, string, error)
- func (c *Connection) ListTables(ctx context.Context, database, databaseSchema string, pageSize uint32, ...) ([]*drivers.TableInfo, string, error)
- func (c *Connection) LoadPhysicalSize(ctx context.Context, tables []*drivers.OlapTable) error
- func (c *Connection) Lookup(ctx context.Context, db, schema, name string) (*drivers.OlapTable, error)
- func (c *Connection) MayBeScaledToZero(ctx context.Context) bool
- func (c *Connection) Migrate(ctx context.Context) (err error)
- func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
- func (c *Connection) Ping(ctx context.Context) error
- func (c *Connection) Query(ctx context.Context, stmt *drivers.Statement) (res *drivers.Result, resErr error)
- func (c *Connection) QueryAsFiles(ctx context.Context, props map[string]any) (outIt drivers.FileIterator, outErr error)
- func (c *Connection) QuerySchema(ctx context.Context, query string, args []any) (*runtimev1.StructType, error)
- func (c *Connection) WithConnection(ctx context.Context, priority int, fn drivers.WithConnectionFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) All ¶ added in v0.78.0
func (c *Connection) All(ctx context.Context, like string, pageSize uint32, pageToken string) ([]*drivers.OlapTable, string, error)
All implements drivers.OLAPInformationSchema.
func (*Connection) AsAI ¶ added in v0.41.0
func (c *Connection) AsAI(instanceID string) (drivers.AIService, bool)
AsAI implements drivers.Handle.
func (*Connection) AsAdmin ¶ added in v0.37.0
func (c *Connection) AsAdmin(instanceID string) (drivers.AdminService, bool)
AsAdmin implements drivers.Handle.
func (*Connection) AsCatalogStore ¶
func (c *Connection) AsCatalogStore(instanceID string) (drivers.CatalogStore, bool)
Catalog implements drivers.Connection.
func (*Connection) AsFileStore ¶
func (c *Connection) AsFileStore() (drivers.FileStore, bool)
func (*Connection) AsInformationSchema ¶ added in v0.78.0
func (c *Connection) AsInformationSchema() (drivers.InformationSchema, bool)
AsInformationSchema implements drivers.Connection.
func (*Connection) AsModelExecutor ¶ added in v0.45.0
func (c *Connection) AsModelExecutor(instanceID string, opts *drivers.ModelExecutorOptions) (drivers.ModelExecutor, error)
AsModelExecutor implements drivers.Handle.
func (*Connection) AsModelManager ¶ added in v0.45.0
func (c *Connection) AsModelManager(instanceID string) (drivers.ModelManager, bool)
AsModelManager implements drivers.Handle.
func (*Connection) AsNotifier ¶ added in v0.43.0
AsNotifier implements drivers.Connection.
func (*Connection) AsOLAP ¶
func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
OLAP implements drivers.Connection.
func (*Connection) AsObjectStore ¶
func (c *Connection) AsObjectStore() (drivers.ObjectStore, bool)
AsObjectStore implements drivers.Connection.
func (*Connection) AsRegistry ¶
func (c *Connection) AsRegistry() (drivers.RegistryStore, bool)
Registry implements drivers.Connection.
func (*Connection) AsRepoStore ¶
func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
Repo implements drivers.Connection.
func (*Connection) AsWarehouse ¶ added in v0.48.0
func (c *Connection) AsWarehouse() (drivers.Warehouse, bool)
AsWarehouse implements drivers.Handle.
func (*Connection) Config ¶
func (c *Connection) Config() map[string]any
Config implements drivers.Connection.
func (*Connection) Dialect ¶ added in v0.78.0
func (c *Connection) Dialect() drivers.Dialect
Dialect implements drivers.OLAPStore.
func (*Connection) Driver ¶
func (c *Connection) Driver() string
Driver implements drivers.Connection.
func (*Connection) GetTable ¶ added in v0.78.0
func (c *Connection) GetTable(ctx context.Context, database, databaseSchema, table string) (*drivers.TableMetadata, error)
func (*Connection) InformationSchema ¶ added in v0.78.0
func (c *Connection) InformationSchema() drivers.OLAPInformationSchema
InformationSchema implements drivers.OLAPStore.
func (*Connection) ListDatabaseSchemas ¶ added in v0.78.0
func (c *Connection) ListDatabaseSchemas(ctx context.Context, pageSize uint32, pageToken string) ([]*drivers.DatabaseSchemaInfo, string, error)
func (*Connection) ListTables ¶
func (*Connection) LoadPhysicalSize ¶ added in v0.78.0
LoadPhysicalSize implements drivers.OLAPInformationSchema.
func (*Connection) Lookup ¶ added in v0.78.0
func (c *Connection) Lookup(ctx context.Context, db, schema, name string) (*drivers.OlapTable, error)
Lookup implements drivers.OLAPInformationSchema.
func (*Connection) MayBeScaledToZero ¶ added in v0.78.0
func (c *Connection) MayBeScaledToZero(ctx context.Context) bool
MayBeScaledToZero implements drivers.OLAPStore.
func (*Connection) Migrate ¶
func (c *Connection) Migrate(ctx context.Context) (err error)
Migrate implements drivers.Connection.
func (*Connection) MigrationStatus ¶
func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
MigrationStatus implements drivers.Connection.
func (*Connection) Ping ¶ added in v0.47.0
func (c *Connection) Ping(ctx context.Context) error
Ping implements drivers.Handle.
func (*Connection) Query ¶
func (c *Connection) Query(ctx context.Context, stmt *drivers.Statement) (res *drivers.Result, resErr error)
Query implements drivers.OLAPStore.
func (*Connection) QueryAsFiles ¶ added in v0.33.2
func (c *Connection) QueryAsFiles(ctx context.Context, props map[string]any) (outIt drivers.FileIterator, outErr error)
QueryAsFiles implements drivers.SQLStore
func (*Connection) QuerySchema ¶ added in v0.78.0
func (c *Connection) QuerySchema(ctx context.Context, query string, args []any) (*runtimev1.StructType, error)
QuerySchema implements drivers.OLAPStore.
func (*Connection) WithConnection ¶ added in v0.78.0
func (c *Connection) WithConnection(ctx context.Context, priority int, fn drivers.WithConnectionFunc) error
WithConnection implements drivers.OLAPStore.