repository

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetId

func GetId(md interface{}) (interface{}, bool)

func SetId

func SetId(md interface{}, id interface{}) bool

Types

type DbSession

type DbSession interface {
	Sync(bean ...interface{})
	Get(dest interface{}, locked bool, orderby string, conds string, params ...interface{}) bool
	Find(rowsSlicePtr interface{}, md interface{}, orderby string, from int, limit int, conds string, params ...interface{}) error
	Insert(mds ...interface{}) int64
	Update(md interface{}, columns []string, conds string, params ...interface{}) int64
	Delete(md interface{}, conds string, params ...interface{}) int64
	Exec(clause string, params ...interface{}) sql.Result
	Query(clause string, params ...interface{}) []map[string][]byte
	Count(bean interface{}, conds string, params ...interface{}) int64
	Transaction(fc func(s DbSession) error)
	Begin()
	Rollback()
	Commit()
	Close()
}

type QueryBuilder

type QueryBuilder struct {
	Clause     string
	Select     string
	Distinct   []string
	From       interface{}
	Join       []string
	On         string
	Where      string
	OrderBy    string
	GroupBy    string
	Limit      int
	Offset     int
	Args       []interface{}
	Containers []interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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