store

package
v0.0.0-...-9581e64 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sqlx.DB

Functions

func Exec

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

func Get

func Get(obj interface{}, queryKey string, args ...interface{}) error

func Init

func Init(pgConnection string) error

func NamedExec

func NamedExec(queryKey string, arg interface{}) (sql.Result, error)

func NamedInsert

func NamedInsert(queryKey string, arg interface{}) error

func NamedQuery

func NamedQuery(queryKey string, arg interface{}) (*sqlx.Rows, error)

func Select

func Select(obj interface{}, queryKey string, args ...interface{}) error

Types

type Tx

type Tx struct {
	*sqlx.Tx
}

func Beginx

func Beginx() (*Tx, error)

func (*Tx) Exec

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

func (*Tx) Get

func (tx *Tx) Get(obj interface{}, queryKey string, args ...interface{}) error

func (*Tx) NamedExec

func (tx *Tx) NamedExec(queryKey string, arg interface{}) (sql.Result, error)

func (*Tx) NamedInsert

func (tx *Tx) NamedInsert(queryKey string, arg interface{}) error

func (*Tx) NamedQuery

func (tx *Tx) NamedQuery(queryKey string, arg interface{}) (*sqlx.Rows, error)

func (*Tx) Select

func (tx *Tx) Select(obj interface{}, queryKey string, args ...interface{}) error

Jump to

Keyboard shortcuts

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