Documentation
¶
Index ¶
- Variables
- func DBMgr(db DB) *_DBMgr
- func SummaryDBMgr(db DB) *_SummaryDBMgr
- func UserDBMgr(db DB) *_UserDBMgr
- type Cipher
- type DB
- type FieldIN
- type Join
- type JoinField
- type LOGDB
- type PasswordFunc
- type Summary
- type TableJoin
- func (tj *TableJoin) Condition(condition string, args ...interface{})
- func (tj *TableJoin) Field(table string, fields ...string)
- func (tj *TableJoin) Inner(j *Join)
- func (tj *TableJoin) Left(j *Join)
- func (tj *TableJoin) Limit(offset int, limit int)
- func (tj *TableJoin) OrderBy(orderby string)
- func (tj *TableJoin) Right(j *Join)
- func (tj *TableJoin) SQLFormat() string
- func (tj *TableJoin) SQLParams() []interface{}
- func (tj *TableJoin) TableAlias(table string, alias string)
- type User
- type UserAgeSexIndex
- type UserNameUK
- type UserPK
Constants ¶
This section is empty.
Variables ¶
View Source
var SummaryDBColumns = []string{
"`id`",
"`name`",
"`age`",
"`sex`",
}
View Source
var SummaryMgr *_SummaryMgr
View Source
var UserDBColumns = []string{
"`id`",
"`name`",
"`age`",
"`sex`",
"`foo_bar`",
"`create_at`",
"`update_at`",
}
View Source
var UserDBTable = "user"
View Source
var UserMgr *_UserMgr
Functions ¶
func SummaryDBMgr ¶
func SummaryDBMgr(db DB) *_SummaryDBMgr
Types ¶
type FieldIN ¶
type FieldIN struct {
Field string
Params []interface{}
// contains filtered or unexported fields
}
In
func NewFieldIN ¶
func (*FieldIN) SQLFormatNotIn ¶
type LOGDB ¶
type LOGDB struct {
// contains filtered or unexported fields
}
LOG
func (*LOGDB) ExecContext ¶
type TableJoin ¶
type TableJoin struct {
// contains filtered or unexported fields
}
TableJoin
func NewTableJoin ¶
func (*TableJoin) TableAlias ¶
type User ¶
type User struct {
Id int32 `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Age int32 `json:"age" yaml:"age"`
Sex bool `json:"sex" yaml:"sex"`
FooBar int32 `json:"foo" yaml:"bar"`
CreateAt time.Time `json:"createAt" yaml:"createAt"`
UpdateAt *time.Time `json:"updateAt" yaml:"updateAt"`
}
type UserAgeSexIndex ¶
func (*UserAgeSexIndex) DBColumns ¶
func (u *UserAgeSexIndex) DBColumns() []string
func (*UserAgeSexIndex) SQLFormat ¶
func (u *UserAgeSexIndex) SQLFormat() []string
func (*UserAgeSexIndex) SQLParams ¶
func (u *UserAgeSexIndex) SQLParams() []interface{}
type UserNameUK ¶
type UserNameUK struct {
Name string
}
func (*UserNameUK) DBColumns ¶
func (u *UserNameUK) DBColumns() []string
func (*UserNameUK) SQLFormat ¶
func (u *UserNameUK) SQLFormat() []string
func (*UserNameUK) SQLParams ¶
func (u *UserNameUK) SQLParams() []interface{}
Click to show internal directories.
Click to hide internal directories.