dao

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

func New

func New(table string) *Dao

func (*Dao) Add

func (this *Dao) Add(row map[string]interface{}) int64

func (*Dao) AddList

func (this *Dao) AddList(rowList []map[string]interface{}) int64

func (*Dao) Count

func (this *Dao) Count() int64

func (*Dao) Debug

func (this *Dao) Debug(debug bool) *Dao

func (*Dao) Del

func (this *Dao) Del() int64

func (*Dao) Exists

func (this *Dao) Exists() bool

func (*Dao) Field

func (this *Dao) Field(field string) *Dao

func (*Dao) Get

func (this *Dao) Get() map[string]string

func (*Dao) GetList

func (this *Dao) GetList() []map[string]string

func (*Dao) Index

func (this *Dao) Index(index string) *Dao

func (*Dao) Limit

func (this *Dao) Limit(limit int) *Dao

func (*Dao) Offset

func (this *Dao) Offset(offset int) *Dao

func (*Dao) Order

func (this *Dao) Order(order string) *Dao

func (*Dao) Parameter

func (this *Dao) Parameter(parameter []interface{}) *Dao

func (*Dao) Set

func (this *Dao) Set(row map[string]interface{}) int64

func (*Dao) Sql

func (this *Dao) Sql(statement string) interface{}

func (*Dao) Table

func (this *Dao) Table(table string) *Dao

func (*Dao) Tx

func (this *Dao) Tx(tx *sql.Tx) *Dao

func (*Dao) Where

func (this *Dao) Where(where string) *Dao

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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