Documentation
¶
Index ¶
- func ReadOnlySetting(db *gorm.DB)
- type BoolQuery
- type Condition
- func Eq(field string, value interface{}, opts ...Opt) *Condition
- func Gt(field string, value interface{}, opts ...Opt) *Condition
- func Gte(field string, value interface{}, opts ...Opt) *Condition
- func Lt(field string, value interface{}, opts ...Opt) *Condition
- func Lte(field string, value interface{}, opts ...Opt) *Condition
- func Neq(field string, value interface{}, opts ...Opt) *Condition
- type Config
- type Gorm
- type Opt
- type Query
- type Setting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolQuery ¶ added in v1.0.1
func NewBoolQuery ¶ added in v1.0.1
func NewBoolQuery() *BoolQuery
type Config ¶
type Config struct {
Address string `json:"address" yaml:"address"`
Port int `json:"port" yaml:"port"`
Database string `json:"database" yaml:"database"`
TablePrefix string `json:"table_prefix" yaml:"table_prefix"`
User string `json:"user" yaml:"user"`
Password string `json:"password" yaml:"password"`
ReadOnly bool `json:"read_only" yaml:"read_only"`
}
Click to show internal directories.
Click to hide internal directories.