Documentation ¶
Index ¶
- type DB
- func (db DB) Close() error
- func (db DB) Exec(sql string, args ...interface{}) (sql.Result, error)
- func (db DB) ExecContext(ctx context.Context, sql string, args ...interface{}) (sql.Result, error)
- func (db DB) Query(sql string, args ...interface{}) (*sql.Rows, error)
- func (db DB) QueryContext(ctx context.Context, sql string, args ...interface{}) (*sql.Rows, error)
- func (db DB) QueryRow(sql string, args ...interface{}) *sql.Row
- func (db DB) QueryRowContext(ctx context.Context, sql string, args ...interface{}) *sql.Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB wraps a sql.DB and checks all of the arguments to queries to ensure they are in UTC.
func (DB) ExecContext ¶
ExecContext executes ExecContext after checking all of the arguments.
func (DB) QueryContext ¶
QueryContext executes QueryContext after checking all of the arguments.
Click to show internal directories.
Click to hide internal directories.