utccheck

package
v0.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
}

DB wraps a sql.DB and checks all of the arguments to queries to ensure they are in UTC.

func New

func New(db *sql.DB) *DB

New creates a new database that checks that all time arguments are UTC.

func (DB) Close

func (db DB) Close() error

Close closes the database.

func (DB) Exec

func (db DB) Exec(sql string, args ...interface{}) (sql.Result, error)

Exec executes Exec after checking all of the arguments.

func (DB) ExecContext

func (db DB) ExecContext(ctx context.Context, sql string, args ...interface{}) (sql.Result, error)

ExecContext executes ExecContext after checking all of the arguments.

func (DB) Query

func (db DB) Query(sql string, args ...interface{}) (*sql.Rows, error)

Query executes Query after checking all of the arguments.

func (DB) QueryContext

func (db DB) QueryContext(ctx context.Context, sql string, args ...interface{}) (*sql.Rows, error)

QueryContext executes QueryContext after checking all of the arguments.

func (DB) QueryRow

func (db DB) QueryRow(sql string, args ...interface{}) *sql.Row

QueryRow executes QueryRow after checking all of the arguments.

func (DB) QueryRowContext

func (db DB) QueryRowContext(ctx context.Context, sql string, args ...interface{}) *sql.Row

QueryRowContext executes QueryRowContext after checking all of the arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL