test

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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

func (c *Catalog) AllDatabases(ctx *sql.Context) []sql.Database

AllDatabases returns all sliceDBProvider in the catalog.

func (*Catalog) CreateDatabase added in v0.11.0

func (c *Catalog) CreateDatabase(ctx *sql.Context, dbName string, collation sql.CollationID) error

CreateDatabase creates a new Database and adds it to the catalog.

func (*Catalog) Database added in v0.11.0

func (c *Catalog) Database(ctx *sql.Context, db string) (sql.Database, error)

Database returns the database with the given name.

func (*Catalog) Function added in v0.11.0

func (c *Catalog) Function(ctx *sql.Context, name string) (sql.Function, error)

func (*Catalog) HasDB added in v0.11.0

func (c *Catalog) HasDB(ctx *sql.Context, db string) bool

func (*Catalog) LockTable added in v0.11.0

func (c *Catalog) LockTable(ctx *sql.Context, table string)

func (*Catalog) RegisterFunction added in v0.11.0

func (c *Catalog) RegisterFunction(ctx *sql.Context, fns ...sql.Function)

func (*Catalog) RemoveDatabase added in v0.11.0

func (c *Catalog) RemoveDatabase(ctx *sql.Context, dbName string) error

RemoveDatabase removes a database from the catalog.

func (*Catalog) Statistics added in v0.15.0

func (c *Catalog) Statistics(ctx *sql.Context) (sql.StatsReadWriter, error)

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) TableAsOf added in v0.11.0

func (c *Catalog) TableAsOf(ctx *sql.Context, dbName, tableName string, asOf interface{}) (sql.Table, sql.Database, error)

func (*Catalog) UnlockTables added in v0.11.0

func (c *Catalog) UnlockTables(ctx *sql.Context, id uint32) error

type MemTracer

type MemTracer struct {
	Spans []string
	sync.Mutex
}

MemTracer implements a simple tracer in memory for testing.

func (*MemTracer) Start added in v0.14.0

func (t *MemTracer) Start(ctx context.Context, operationName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Jump to

Keyboard shortcuts

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