Versions in this module Expand all Collapse all v0 v0.1.1 Jan 2, 2022 Changes in this version + var ErrUnsupportedType = errors.New("unsupported type") + type Conn struct + func (c *Conn) Begin() (driver.Tx, error) + func (c *Conn) Close() error + func (c *Conn) Prepare(query string) (driver.Stmt, error) + func (c *Conn) Session() sql.Session + type Connector struct + func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) + func (c *Connector) Driver() driver.Driver + func (c *Connector) Server() string + type ContextBuilder interface + NewContext func(context.Context, *Conn, ...sql.ContextOption) (*sql.Context, error) + type DefaultContextBuilder struct + func (DefaultContextBuilder) NewContext(ctx context.Context, conn *Conn, opts ...sql.ContextOption) (*sql.Context, error) + type DefaultSessionBuilder struct + func (DefaultSessionBuilder) NewSession(ctx context.Context, id uint32, conn *Connector) (sql.Session, error) + type Driver struct + func New(provider Provider, options *Options) *Driver + func (d *Driver) Close() error + func (d *Driver) Open(name string) (driver.Conn, error) + func (d *Driver) OpenConnector(dsn string) (driver.Connector, error) + type Options struct + JSON ScanKind + type Provider interface + Resolve func(name string, options *Options) (string, sql.DatabaseProvider, error) + type Result struct + func (r *Result) LastInsertId() (int64, error) + func (r *Result) RowsAffected() (int64, error) + type ResultNotFound struct + func (r *ResultNotFound) LastInsertId() (int64, error) + func (r *ResultNotFound) RowsAffected() (int64, error) + type Rows struct + func (r *Rows) Close() error + func (r *Rows) Columns() []string + func (r *Rows) Next(dest []driver.Value) error + type ScanKind int + const ScanAsBytes + const ScanAsObject + const ScanAsStored + const ScanAsString + type SessionBuilder interface + NewSession func(ctx context.Context, id uint32, conn *Connector) (sql.Session, error) + type Stmt struct + func (s *Stmt) Close() error + func (s *Stmt) Exec(args []driver.Value) (driver.Result, error) + func (s *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) + func (s *Stmt) NumInput() int + func (s *Stmt) Query(args []driver.Value) (driver.Rows, error) + func (s *Stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)