Documentation ¶
Index ¶
- Variables
- func Exec(queryKey string, args ...interface{}) (sql.Result, error)
- func Get(obj interface{}, queryKey string, args ...interface{}) error
- func Init(pgConnection string) error
- func NamedExec(queryKey string, arg interface{}) (sql.Result, error)
- func NamedInsert(queryKey string, arg interface{}) error
- func NamedQuery(queryKey string, arg interface{}) (*sqlx.Rows, error)
- func Select(obj interface{}, queryKey string, args ...interface{}) error
- type Tx
- func (tx *Tx) Exec(queryKey string, args ...interface{}) (sql.Result, error)
- func (tx *Tx) Get(obj interface{}, queryKey string, args ...interface{}) error
- func (tx *Tx) NamedExec(queryKey string, arg interface{}) (sql.Result, error)
- func (tx *Tx) NamedInsert(queryKey string, arg interface{}) error
- func (tx *Tx) NamedQuery(queryKey string, arg interface{}) (*sqlx.Rows, error)
- func (tx *Tx) Select(obj interface{}, queryKey string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sqlx.DB
Functions ¶
func NamedInsert ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.