Documentation ¶
Index ¶
- func NewCatalog(provider sql.DatabaseProvider) sql.Catalog
- type Catalog
- func (c *Catalog) AllDatabases(ctx *sql.Context) []sql.Database
- func (c *Catalog) CreateDatabase(ctx *sql.Context, dbName string, collation sql.CollationID) error
- func (c *Catalog) DataLength(ctx *sql.Context, db, table string) (uint64, error)
- func (c *Catalog) Database(ctx *sql.Context, db string) (sql.Database, error)
- func (c *Catalog) DatabaseTable(ctx *sql.Context, db sql.Database, tableName string) (sql.Table, sql.Database, error)
- func (c *Catalog) DatabaseTableAsOf(ctx *sql.Context, db sql.Database, tableName string, asOf interface{}) (sql.Table, sql.Database, error)
- func (c *Catalog) DropDbStats(ctx *sql.Context, db string, flush bool) error
- func (c *Catalog) DropStats(ctx *sql.Context, qual sql.StatQualifier, cols []string) error
- func (c *Catalog) ExternalStoredProcedure(ctx *sql.Context, name string, numOfParams int) (*sql.ExternalStoredProcedureDetails, error)
- func (c *Catalog) ExternalStoredProcedures(ctx *sql.Context, name string) ([]sql.ExternalStoredProcedureDetails, error)
- func (c *Catalog) Function(ctx *sql.Context, name string) (sql.Function, error)
- func (c *Catalog) GetStats(ctx *sql.Context, qual sql.StatQualifier, cols []string) (sql.Statistic, bool)
- func (c *Catalog) GetTableStats(ctx *sql.Context, db, table string) ([]sql.Statistic, error)
- func (c *Catalog) HasDatabase(ctx *sql.Context, db string) bool
- func (c *Catalog) LockTable(ctx *sql.Context, table string)
- func (c *Catalog) RefreshTableStats(ctx *sql.Context, table sql.Table, db string) error
- func (c *Catalog) RegisterFunction(ctx *sql.Context, fns ...sql.Function)
- func (c *Catalog) RemoveDatabase(ctx *sql.Context, dbName string) error
- func (c *Catalog) RowCount(ctx *sql.Context, db, table string) (uint64, error)
- func (c *Catalog) SetStats(ctx *sql.Context, stats sql.Statistic) error
- func (c *Catalog) Table(ctx *sql.Context, dbName, tableName string) (sql.Table, sql.Database, error)
- func (c *Catalog) TableAsOf(ctx *sql.Context, dbName, tableName string, asOf interface{}) (sql.Table, sql.Database, error)
- func (c *Catalog) TableFunction(ctx *sql.Context, name string) (sql.TableFunction, error)
- func (c *Catalog) UnlockTables(ctx *sql.Context, id uint32) error
- func (c *Catalog) WithTableFunctions(fns ...sql.TableFunction) (sql.TableFunctionProvider, error)
- type MemTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCatalog ¶ added in v0.11.0
func NewCatalog(provider sql.DatabaseProvider) sql.Catalog
NewCatalog returns a new empty Catalog with the given provider
Types ¶
type Catalog ¶ added in v0.11.0
type Catalog struct {
// contains filtered or unexported fields
}
func (*Catalog) AllDatabases ¶ added in v0.11.0
AllDatabases returns all sliceDBProvider in the catalog.
func (*Catalog) CreateDatabase ¶ added in v0.11.0
CreateDatabase creates a new Database and adds it to the catalog.
func (*Catalog) DataLength ¶ added in v0.18.0
func (*Catalog) DatabaseTable ¶ added in v0.16.0
func (*Catalog) DatabaseTableAsOf ¶ added in v0.16.0
func (*Catalog) DropDbStats ¶ added in v0.18.0
func (*Catalog) ExternalStoredProcedure ¶ added in v0.16.0
func (*Catalog) ExternalStoredProcedures ¶ added in v0.16.0
func (*Catalog) GetTableStats ¶ added in v0.18.0
func (*Catalog) HasDatabase ¶ added in v0.16.0
func (*Catalog) RefreshTableStats ¶ added in v0.18.0
func (*Catalog) RegisterFunction ¶ added in v0.11.0
func (*Catalog) RemoveDatabase ¶ added in v0.11.0
RemoveDatabase removes a database from the catalog.
func (*Catalog) Table ¶ added in v0.11.0
func (c *Catalog) Table(ctx *sql.Context, dbName, tableName string) (sql.Table, sql.Database, error)
Table returns the table in the given database with the given name.
func (*Catalog) TableFunction ¶ added in v0.16.0
func (*Catalog) UnlockTables ¶ added in v0.11.0
func (*Catalog) WithTableFunctions ¶ added in v0.18.0
func (c *Catalog) WithTableFunctions(fns ...sql.TableFunction) (sql.TableFunctionProvider, error)
Click to show internal directories.
Click to hide internal directories.