sql

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:25 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnTypeDatabaseTypeName

func ColumnTypeDatabaseTypeName(ci *sql.ColumnType) string

func ColumnTypeDecimalSize

func ColumnTypeDecimalSize(ci *sql.ColumnType) (int64, int64, bool)

func ColumnTypeLength

func ColumnTypeLength(ci *sql.ColumnType) (int64, bool)

func ColumnTypeName

func ColumnTypeName(ci *sql.ColumnType) string

func ColumnTypeNullable

func ColumnTypeNullable(ci *sql.ColumnType) (bool, bool)

func ColumnTypeScanType

func ColumnTypeScanType(ci *sql.ColumnType) reflect.Type

func ConnBeginTx

func ConnBeginTx(c *sql.Conn, ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

func ConnClose

func ConnClose(c *sql.Conn) error

func ConnExecContext

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

func ConnPingContext

func ConnPingContext(c *sql.Conn, ctx context.Context) 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 ConnQueryRowContext

func ConnQueryRowContext(c *sql.Conn, ctx context.Context, query string, args ...interface{}) *sql.Row

func ConnRaw

func ConnRaw(c *sql.Conn, f func(driverConn interface{}) error) error

func DBBegin

func DBBegin(db *sql.DB) (*sql.Tx, error)

func DBBeginTx

func DBBeginTx(db *sql.DB, ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

func DBClose

func DBClose(db *sql.DB) error

func DBConn

func DBConn(db *sql.DB, ctx context.Context) (*sql.Conn, error)

func DBDriver

func DBDriver(db *sql.DB) driver.Driver

func DBExec

func DBExec(db *sql.DB, query string, args ...interface{}) (sql.Result, error)

func DBExecContext

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

func DBPing

func DBPing(db *sql.DB) error

func DBPingContext

func DBPingContext(db *sql.DB, ctx context.Context) error

func DBPrepare

func DBPrepare(db *sql.DB, query string) (*sql.Stmt, error)

func DBPrepareContext

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

func DBQuery

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

func DBQueryContext

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

func DBQueryRow

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

func DBQueryRowContext

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

func DBStats

func DBStats(db *sql.DB) sql.DBStats

func Drivers

func Drivers() []string

func IsolationLevelString

func IsolationLevelString(i sql.IsolationLevel) string

func Named

func Named(name string, value interface{}) sql.NamedArg

func NullBoolScan

func NullBoolScan(n *sql.NullBool, value interface{}) error

func NullBoolValue

func NullBoolValue(n sql.NullBool) (driver.Value, error)

func NullFloat64Scan

func NullFloat64Scan(n *sql.NullFloat64, value interface{}) error

func NullFloat64Value

func NullFloat64Value(n sql.NullFloat64) (driver.Value, error)

func NullInt32Scan

func NullInt32Scan(n *sql.NullInt32, value interface{}) error

func NullInt32Value

func NullInt32Value(n sql.NullInt32) (driver.Value, error)

func NullInt64Scan

func NullInt64Scan(n *sql.NullInt64, value interface{}) error

func NullInt64Value

func NullInt64Value(n sql.NullInt64) (driver.Value, error)

func NullStringScan

func NullStringScan(ns *sql.NullString, value interface{}) error

func NullStringValue

func NullStringValue(ns sql.NullString) (driver.Value, error)

func NullTimeScan

func NullTimeScan(n *sql.NullTime, value interface{}) error

func NullTimeValue

func NullTimeValue(n sql.NullTime) (driver.Value, error)

func Open

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

func OpenDB

func OpenDB(c driver.Connector) *sql.DB

func RowScan

func RowScan(r *sql.Row, dest ...interface{}) error

func RowsClose

func RowsClose(rs *sql.Rows) error

func RowsColumnTypes

func RowsColumnTypes(rs *sql.Rows) ([]*sql.ColumnType, error)

func RowsColumns

func RowsColumns(rs *sql.Rows) ([]string, error)

func RowsErr

func RowsErr(rs *sql.Rows) error

func RowsNext

func RowsNext(rs *sql.Rows) bool

func RowsNextResultSet

func RowsNextResultSet(rs *sql.Rows) bool

func RowsScan

func RowsScan(rs *sql.Rows, dest ...interface{}) error

func StmtClose

func StmtClose(s *sql.Stmt) error

func StmtExec

func StmtExec(s *sql.Stmt, args ...interface{}) (sql.Result, error)

func StmtExecContext

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

func StmtQuery

func StmtQuery(s *sql.Stmt, args ...interface{}) (*sql.Rows, error)

func StmtQueryContext

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

func StmtQueryRow

func StmtQueryRow(s *sql.Stmt, args ...interface{}) *sql.Row

func StmtQueryRowContext

func StmtQueryRowContext(s *sql.Stmt, ctx context.Context, args ...interface{}) *sql.Row

func TxCommit

func TxCommit(tx *sql.Tx) error

func TxExec

func TxExec(tx *sql.Tx, query string, args ...interface{}) (sql.Result, error)

func TxExecContext

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

func TxPrepare

func TxPrepare(tx *sql.Tx, query string) (*sql.Stmt, error)

func TxPrepareContext

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

func TxQuery

func TxQuery(tx *sql.Tx, query string, args ...interface{}) (*sql.Rows, error)

func TxQueryContext

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

func TxQueryRow

func TxQueryRow(tx *sql.Tx, query string, args ...interface{}) *sql.Row

func TxQueryRowContext

func TxQueryRowContext(tx *sql.Tx, ctx context.Context, query string, args ...interface{}) *sql.Row

func TxRollback

func TxRollback(tx *sql.Tx) error

func TxStmt

func TxStmt(tx *sql.Tx, stmt *sql.Stmt) *sql.Stmt

func TxStmtContext

func TxStmtContext(tx *sql.Tx, ctx context.Context, stmt *sql.Stmt) *sql.Stmt

Types

This section is empty.

Directories

Path Synopsis
This file has automatically been generated on Wed Feb 26 15:50:26 +05 2020.
This file has automatically been generated on Wed Feb 26 15:50:26 +05 2020.

Jump to

Keyboard shortcuts

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