Documentation ¶
Index ¶
- Variables
- func ConnectDB()
- func ConnectDBx()
- func DbWithError(e error) *gorm.DB
- func DeleteModelWithAssociations(value interface{}, associations ...string) error
- func TestDB() (*gorm.DB, error)
- func Transact(db *gorm.DB, txFunc func(*gorm.DB) error) (err error)
- func UndeleteOrCreate(model interface{}, query string, args ...interface{}) error
- type IQModel
- type IQSqlx
- type JsonB
- type Mappable
- type QueryParser
- type Scope
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DB *gorm.DB DBError error )
View Source
var ( DBx *IQSqlx DBxError error )
Functions ¶
func ConnectDBx ¶
func ConnectDBx()
func DbWithError ¶
func UndeleteOrCreate ¶
Types ¶
type QueryParser ¶
type QueryParser struct {
// contains filtered or unexported fields
}
func (QueryParser) Get ¶
func (qp QueryParser) Get(name string) (string, error)
Get is a shortcut for r.Parse(), passing nil as data.
func (QueryParser) Parse ¶
func (qp QueryParser) Parse(name string, data interface{}) (string, error)
func (QueryParser) ParseWithValueHolders ¶
func (*QueryParser) SetFileFromBindata ¶
func (qp *QueryParser) SetFileFromBindata(path string) error
Click to show internal directories.
Click to hide internal directories.