Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2016 Changes in this version + const JoinInner + const JoinNatural + const JoinOuterLeft + const JoinOuterRight + var DebugMode = false + var DebugWriter = os.Stdout + func AppendFrom(q *Query, from ...string) + func AppendGroupBy(q *Query, clause string) + func AppendHaving(q *Query, clause string, args ...interface{}) + func AppendIn(q *Query, clause string, args ...interface{}) + func AppendInnerJoin(q *Query, clause string, args ...interface{}) + func AppendOrderBy(q *Query, clause string) + func AppendSelect(q *Query, columns ...string) + func AppendWhere(q *Query, clause string, args ...interface{}) + func Bind(rows *sql.Rows, obj interface{}) error + func BindMapping(typ reflect.Type, mapping map[string]uint64, cols []string) ([]uint64, error) + func BuildUpsertQuery(tableName string, updateOnConflict bool, ...) string + func ExecQuery(q *Query) (sql.Result, error) + func ExecQueryAll(q *Query) (*sql.Rows, error) + func ExecQueryOne(q *Query) *sql.Row + func GetLocation() *time.Location + func GetSliceValues(slice []interface{}, columns ...string) []interface + func GetStructPointers(obj interface{}, columns ...string) []interface + func GetStructValues(obj interface{}, columns ...string) []interface + func IsBoilErr(err error) bool + func MakeStructMapping(typ reflect.Type) map[string]uint64 + func NonZeroDefaultSet(defaults []string, obj interface{}) []string + func PtrsFromMapping(val reflect.Value, mapping []uint64) []interface + func SetCount(q *Query) + func SetDB(db Executor) + func SetDelete(q *Query) + func SetExecutor(q *Query, exec Executor) + func SetFor(q *Query, clause string) + func SetFrom(q *Query, from ...string) + func SetLastInAsOr(q *Query) + func SetLastWhereAsOr(q *Query) + func SetLimit(q *Query, limit int) + func SetLoad(q *Query, relationships ...string) + func SetLocation(loc *time.Location) + func SetOffset(q *Query, offset int) + func SetSQL(q *Query, sql string, args ...interface{}) + func SetUpdate(q *Query, cols map[string]interface{}) + func ValuesFromMapping(val reflect.Value, mapping []uint64) []interface + func WrapErr(err error) error + type Beginner interface + Begin func() (*sql.Tx, error) + type Executor interface + Exec func(query string, args ...interface{}) (sql.Result, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + func GetDB() Executor + func GetExecutor(q *Query) Executor + type HookPoint int + const AfterDeleteHook + const AfterInsertHook + const AfterSelectHook + const AfterUpdateHook + const AfterUpsertHook + const BeforeDeleteHook + const BeforeInsertHook + const BeforeUpdateHook + const BeforeUpsertHook + type Query struct + func SQL(exec Executor, query string, args ...interface{}) *Query + func SQLG(query string, args ...interface{}) *Query + func (q *Query) Bind(obj interface{}) error + func (q *Query) BindP(obj interface{}) + type Transactor interface + Commit func() error + Rollback func() error + func Begin() (Transactor, error) Incompatible versions in this module v2.7.4+incompatible Jul 16, 2018