Documentation ¶
Index ¶
- type Pg
- type PgQuery
- func (p *PgQuery) Avg(avg *int64) error
- func (p *PgQuery) Count(count *int64) error
- func (p *PgQuery) Find(dest interface{}) error
- func (p *PgQuery) Group(group string) Query
- func (p *PgQuery) Limit(limit int64) Query
- func (p *PgQuery) Offset(offset int64) Query
- func (p *PgQuery) Sort(filed string, sortBy string) Query
- func (p *PgQuery) Sum(sum *int64) error
- type PgTable
- func (p *PgTable) Avg(avg *int64) error
- func (p *PgTable) Count(count *int64) error
- func (p *PgTable) Delete() error
- func (p *PgTable) Find(dest interface{}) error
- func (p *PgTable) Group(group string) Query
- func (p *PgTable) Limit(limit int64) Query
- func (p *PgTable) Offset(offset int64) Query
- func (p *PgTable) Save(dest interface{}) error
- func (p *PgTable) Select(fields string) Table
- func (p *PgTable) SetDec(field string) error
- func (p *PgTable) SetInc(field string) error
- func (p *PgTable) Sort(filed string, sortBy string) Query
- func (p *PgTable) Sum(sum *int64) error
- func (p *PgTable) Update(dest interface{}) error
- func (p *PgTable) Where(where string, argc ...interface{}) Table
- func (p *PgTable) WhereOr(where string, argc ...interface{}) Table
- type Query
- type SQL
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQL ¶
type Table ¶
type Table interface { Select(fields string) Table Where(where string, argc ...interface{}) Table WhereOr(where string, argc ...interface{}) Table Sort(filed string, sortBy string) Query Offset(offset int64) Query Limit(limit int64) Query Group(group string) Query Find(dest interface{}) error Count(count *int64) error Sum(sum *int64) error Avg(avg *int64) error Update(dest interface{}) error Save(dest interface{}) error Delete() error SetInc(field string) error // feature:field value + 1 SetDec(field string) error // feature:field value - 1 // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.