Versions in this module Expand all Collapse all v1 v1.1.0 Jun 22, 2022 Changes in this version + func IsSuppressed(ctx context.Context) bool + func Suppress(ctx context.Context) context.Context v1.0.1 Jan 3, 2021 Changes in this version + var ErrNoID = errors.New("no ID") + var ErrUnknownQuery = errors.New("unknown query") + func ID(ctx context.Context) (driver.Value, error) + func Open(dsn, tenantIDCol string, whitelist map[string]Transformed) (*sql.DB, error) + func TransformTester(t *testing.T, tenantIDCol string, m map[string]Transformed) + func WithQuery(ctx context.Context, query string) context.Context + func WithTenantID(ctx context.Context, tenantID driver.Value) context.Context + type Conn struct + func (c *Conn) Begin() (driver.Tx, error) + func (c *Conn) Close() error + func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) + func (c *Conn) Prepare(query string) (driver.Stmt, error) + func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) + type Connector struct + func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) + func (c *Connector) Driver() driver.Driver + type Driver struct + TenantIDCol string + Whitelist map[string]Transformed + func (d *Driver) Open(name string) (driver.Conn, error) + func (d *Driver) OpenConnector(name string) (driver.Connector, error) + type Transformed struct + Num int + Query string