Versions in this module Expand all Collapse all v0 v0.0.1 Aug 10, 2024 Changes in this version + var ErrNotSupported = errors.New("not supported") + var ErrOutOfRange = errors.New("index out of range") + var ErrRegistryEntryExists = errors.New("entry already exists") + var ErrRegistryNoEntry = errors.New("entry not registered") + var ErrTransactionInProgress = errors.New("transaction still in progress") + func GetTLSConfig(name string) (*tls.Config, bool) + func RegisterTLSConfig(name string, cfg *tls.Config) error + func UnregisterTLSConfig(name string) error + type Connection struct + func (c *Connection) Begin() (driver.Tx, error) + func (c *Connection) BeginTx(ctx context.Context, opts sql.TxOptions) (driver.Tx, error) + func (c *Connection) Close() error + func (c *Connection) Prepare(query string) (driver.Stmt, error) + func (c *Connection) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (c *Connection) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) + type Connector struct + func (c *Connector) Configure(config *DriverConfig) error + func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) + func (c *Connector) Driver() driver.Driver + type Driver struct + func (d *Driver) Open(name string) (driver.Conn, error) + func (d *Driver) OpenConnector(name string) (driver.Connector, error) + type DriverConfig struct + Address string + Params map[string]string + Password string + TLSConfig *tls.Config + TLSConfigName string + TLSEnabled bool + Timeout time.Duration + Token string + Username string + func NewDriverConfigFromDSN(dsn string) (*DriverConfig, error) + func (config *DriverConfig) DSN() string + type Result struct + func (r *Result) LastInsertId() (int64, error) + func (r *Result) 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 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) + type Tx struct + func (t *Tx) Commit() error + func (t *Tx) Rollback() error