Documentation ¶
Index ¶
- 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) 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) Ping(ctx context.Context) error
- func (c *Conn) Prepare(query string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, 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)
- func (c *Conn) Unwrap() driver.Conn
- type Connector
- type Driver
- type Stmt
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn wraps a driver.Conn with utc checks.
func (*Conn) ExecContext ¶
func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
ExecContext checks the arguments for non-utc timestamps and returns the result.
func (*Conn) PrepareContext ¶
PrepareContext checks the arguments for non-utc timestamps and returns the result.
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector wraps a driver.Connector with utc checks.
func WrapConnector ¶
WrapConnector wraps a driver.Connector with utc checks.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver wraps a driver.Driver with utc checks.
func WrapDriver ¶
WrapDriver wraps a driver.Driver with utc checks.
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
Stmt wraps a driver.Stmt with utc checks.
Click to show internal directories.
Click to hide internal directories.