dbutils

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFieldForIncrBy added in v0.5.2

func CheckFieldForIncrBy(field, fields uint64, count int64) error

func CondArgs

func CondArgs(otherFields uint64, condFields []uint64, condArgIndex []int, args []interface{}) (uint64, []interface{})

func QueryCountById

func QueryCountById(exec gomodel.Executor, sqlid uint64, args ...interface{}) (int64, error)

func QueryOneResultById added in v0.5.2

func QueryOneResultById(exec gomodel.Executor, sqlid uint64, ptr interface{}, args ...interface{}) error

Types

type CondOption added in v0.5.2

type CondOption struct {
	OtherFields    uint64
	CondFields     []uint64
	CondArgIndexes []int
	Args           []interface{}
}

func (CondOption) CondArgs added in v0.5.2

func (opt CondOption) CondArgs() (uint64, []interface{})

type IncrByFunc added in v0.5.2

type IncrByFunc func(exec gomodel.Executor, field uint64, whereArgs ...interface{}) error

func FuncForIncrByFieldCount added in v0.5.2

func FuncForIncrByFieldCount(defaultRunner gomodel.Executor, model gomodel.Model, fields, whereFields uint64, noAffectsError error) IncrByFunc

Jump to

Keyboard shortcuts

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