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 ¶ added in v0.28.0
type Conn struct {
// contains filtered or unexported fields
}
Conn wraps a driver.Conn with utc checks.
func (*Conn) Exec ¶ added in v0.28.0
Exec checks the arguments for non-utc timestamps and returns the result.
func (*Conn) ExecContext ¶ added in v0.28.0
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 ¶ added in v0.28.0
PrepareContext checks the arguments for non-utc timestamps and returns the result.
func (*Conn) Query ¶ added in v0.28.0
Query checks the arguments for non-utc timestamps and returns the result.
type Connector ¶ added in v0.28.0
type Connector struct {
// contains filtered or unexported fields
}
Connector wraps a driver.Connector with utc checks.
func WrapConnector ¶ added in v0.28.0
WrapConnector wraps a driver.Connector with utc checks.
type Driver ¶ added in v0.28.0
type Driver struct {
// contains filtered or unexported fields
}
Driver wraps a driver.Driver with utc checks.
func WrapDriver ¶ added in v0.28.0
WrapDriver wraps a driver.Driver with utc checks.
type Stmt ¶ added in v0.28.0
type Stmt struct {
// contains filtered or unexported fields
}
Stmt wraps a driver.Stmt with utc checks.
func (*Stmt) Exec ¶ added in v0.28.0
Exec checks the arguments for non-utc timestamps and returns the result.