Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DriverName string `json:"DriverName" yaml:"DriverName"` UUID string `json:"UUID" yaml:"UUID"` DSN string `json:"DSN" yaml:"DSN"` Database string `json:"Database" yaml:"Database"` }
Config config
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB my
func (*DB) SetMaxOpenConns ¶
SetMaxOpenConns SetMaxOpenConns
type Options ¶
type Options struct { Debug bool Database string // mysql: database; mongodb;database Table string // mysql: table; mongodb;collection CreatedAt time.Time UpdatedAt time.Time Limit int Omit []string // 忽略字段; mysql:Omit(columns...) Tx *DB }
Options options
type SearchBody ¶
type SearchBody struct { Raw string `json:"Raw,omitempty"` Namespace string `json:"Namespace,omitempty"` ResultColumn []string `json:"ResultColumn,omitempty"` Condition []M `json:"Condition,omitempty"` Offset int `json:"Offset,omitempty"` Limit int `json:"Limit,omitempty"` Comment string `json:"Comment,omitempty"` }
Click to show internal directories.
Click to hide internal directories.