database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnExecContext

func ConnExecContext(c *sql.Conn, ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func ConnPrepareContext

func ConnPrepareContext(c *sql.Conn, ctx context.Context, query string) (*sql.Stmt, error)

func ConnQueryContext

func ConnQueryContext(c *sql.Conn, ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func DBClose

func DBClose(db *sql.DB) error

func DBExecContext

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

func DBOpen

func DBOpen(driverName, dataSourceName string) (*sql.DB, error)

func DBPrepareContext

func DBPrepareContext(db *sql.DB, ctx context.Context, query string) (*sql.Stmt, error)

func DBQueryContext

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

func RowsClose

func RowsClose(rs *sql.Rows) error

func StmtClose

func StmtClose(s *sql.Stmt) error

func StmtExecContext

func StmtExecContext(s *sql.Stmt, ctx context.Context, args ...interface{}) (sql.Result, error)

func StmtQueryContext

func StmtQueryContext(s *sql.Stmt, ctx context.Context, args ...interface{}) (*sql.Rows, error)

func TxExecContext

func TxExecContext(tx *sql.Tx, ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func TxPrepareContext

func TxPrepareContext(tx *sql.Tx, ctx context.Context, query string) (*sql.Stmt, error)

func TxQueryContext

func TxQueryContext(tx *sql.Tx, ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func WrapConnExecContext

func WrapConnExecContext(c *sql.Conn, ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func WrapConnPrepareContext

func WrapConnPrepareContext(c *sql.Conn, ctx context.Context, query string) (*sql.Stmt, error)

func WrapConnQueryContext

func WrapConnQueryContext(c *sql.Conn, ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func WrapDBClose

func WrapDBClose(db *sql.DB) error

func WrapDBExecContext

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

func WrapDBOpen

func WrapDBOpen(driverName, dataSourceName string) (*sql.DB, error)

func WrapDBPrepareContext

func WrapDBPrepareContext(db *sql.DB, ctx context.Context, query string) (*sql.Stmt, error)

func WrapDBQueryContext

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

func WrapRowsClose

func WrapRowsClose(rs *sql.Rows) error

func WrapStmtClose

func WrapStmtClose(s *sql.Stmt) error

func WrapStmtExecContext

func WrapStmtExecContext(s *sql.Stmt, ctx context.Context, args ...interface{}) (sql.Result, error)

func WrapStmtQueryContext

func WrapStmtQueryContext(s *sql.Stmt, ctx context.Context, args ...interface{}) (*sql.Rows, error)

func WrapTxExecContext

func WrapTxExecContext(tx *sql.Tx, ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func WrapTxPrepareContext

func WrapTxPrepareContext(tx *sql.Tx, ctx context.Context, query string) (*sql.Stmt, error)

func WrapTxQueryContext

func WrapTxQueryContext(tx *sql.Tx, ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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