Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctx context.Context
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface {
Begin(context.Context) (pgx.Tx, error)
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
QueryFunc(context.Context, string, []interface{}, []interface{}, func(pgx.QueryFuncRow) error) (pgconn.CommandTag, error)
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
QueryRow(context.Context, string, ...interface{}) pgx.Row
SendBatch(context.Context, *pgx.Batch) pgx.BatchResults
Close()
}
var C Conn
type ConnX ¶ added in v0.0.25
type ConnX interface {
sqlx.Queryer
MapperFunc(func(string) string)
Rebind(string) string
Unsafe() *sqlx.DB
BindNamed(string, interface{}) (string, []interface{}, error)
NamedQuery(string, interface{}) (*sqlx.Rows, error)
NamedExec(string, interface{}) (sql.Result, error)
Select(interface{}, string, ...interface{}) error
Get(interface{}, string, ...interface{}) error
MustBegin() *sqlx.Tx
Beginx() (*sqlx.Tx, error)
MustExec(string, ...interface{}) sql.Result
Preparex(string) (*sqlx.Stmt, error)
PrepareNamed(string) (*sqlx.NamedStmt, error)
}
var Cx ConnX
Click to show internal directories.
Click to hide internal directories.