Documentation ¶
Index ¶
- type DatabaseModule
- type PersistConfig
- type SQLORM
- func (handler SQLORM) Count(o interface{}) (int, error)
- func (handler SQLORM) Create(o interface{}) error
- func (handler SQLORM) Delete(o interface{}) error
- func (handler SQLORM) Get(o interface{}) error
- func (handler SQLORM) GetBy(field string, value interface{}, t interface{}, to interface{}) (error, api.Result)
- func (handler SQLORM) GroupBy(o interface{}, selectField, groupField string, haveQuery string, ...) (error, map[string]interface{})
- func (handler SQLORM) RegisterSchema(t interface{}) error
- func (handler SQLORM) Save(o interface{}) error
- func (handler SQLORM) Search(t interface{}, o interface{}, q *api.Query) (error, api.Result)
- func (handler SQLORM) Update(o interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseModule ¶
type DatabaseModule struct { }
func (DatabaseModule) Name ¶
func (module DatabaseModule) Name() string
func (DatabaseModule) Setup ¶
func (module DatabaseModule) Setup(cfg *Config)
func (DatabaseModule) Start ¶
func (module DatabaseModule) Start() error
func (DatabaseModule) Stop ¶
func (module DatabaseModule) Stop() error
type PersistConfig ¶
type PersistConfig struct { //Driver only `mysql` and `sqlite` are available Driver string `config:"driver"` SQLite *sqlite.SQLiteConfig `config:"sqlite"` MySQL *mysql.MySQLConfig `config:"mysql"` }
Click to show internal directories.
Click to hide internal directories.