Documentation
¶
Index ¶
- func Backup(ctx context.Context, db *sql.DB, w io.Writer) error
- func NewConnector(name string, opts ...ha.Option) (*ha.Connector, error)
- type Conn
- func (c *Conn) Begin() (driver.Tx, error)
- func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (c *Conn) Close() error
- func (c *Conn) Deserialize(b []byte, _ string) error
- func (c *Conn) Exec(query string, args []driver.Value) (driver.Result, error)
- func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (c *Conn) Query(query string, args []driver.Value) (driver.Rows, error)
- func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type ConnHooksRegister
- type Driver
- type SQLiteConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
SQLiteConn
// contains filtered or unexported fields
}
func (*Conn) ExecContext ¶
type ConnHooksRegister ¶
type ConnHooksRegister interface {
RegisterPreUpdateHook(sqlite.PreUpdateHookFn)
RegisterCommitHook(sqlite.CommitHookFn)
RegisterRollbackHook(sqlite.RollbackHookFn)
}
type Driver ¶
type Driver struct {
ConnectionHook sqlite.ConnectionHookFn
Options []ha.Option
// contains filtered or unexported fields
}
type SQLiteConn ¶
Click to show internal directories.
Click to hide internal directories.