Documentation ¶
Index ¶
- type Connection
- 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) 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) AsSQLStore() (drivers.SQLStore, bool)
- func (c *Connection) AsTransporter(from, to drivers.Handle) (drivers.Transporter, bool)
- func (c *Connection) Close() error
- func (c *Connection) Config() map[string]any
- func (c *Connection) Driver() string
- func (c *Connection) Migrate(ctx context.Context) (err error)
- func (c *Connection) MigrationStatus(ctx context.Context) (current, desired int, err error)
- func (c *Connection) Query(_ context.Context, _ map[string]any) (drivers.RowIterator, error)
- func (c *Connection) QueryAsFiles(ctx context.Context, props map[string]any, _ *drivers.QueryOption, ...) (outIt drivers.FileIterator, outErr 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) 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)
AsCatalogStore implements drivers.Connection.
func (*Connection) AsFileStore ¶
func (c *Connection) AsFileStore() (drivers.FileStore, bool)
func (*Connection) AsOLAP ¶
func (c *Connection) AsOLAP(instanceID string) (drivers.OLAPStore, bool)
AsOLAP 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)
AsRegistry implements drivers.Connection.
func (*Connection) AsRepoStore ¶
func (c *Connection) AsRepoStore(instanceID string) (drivers.RepoStore, bool)
AsRepoStore implements drivers.Connection.
func (*Connection) AsSQLStore ¶
func (c *Connection) AsSQLStore() (drivers.SQLStore, bool)
AsSQLStore implements drivers.Connection.
func (*Connection) AsTransporter ¶
func (c *Connection) AsTransporter(from, to drivers.Handle) (drivers.Transporter, bool)
AsTransporter implements drivers.Connection.
func (*Connection) Config ¶
func (c *Connection) Config() map[string]any
Config implements drivers.Connection.
func (*Connection) Driver ¶
func (c *Connection) Driver() string
Driver implements drivers.Connection.
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) Query ¶
func (c *Connection) Query(_ context.Context, _ map[string]any) (drivers.RowIterator, error)
func (*Connection) QueryAsFiles ¶
func (c *Connection) QueryAsFiles(ctx context.Context, props map[string]any, _ *drivers.QueryOption, _ drivers.Progress) (outIt drivers.FileIterator, outErr error)
Click to show internal directories.
Click to hide internal directories.