Documentation ¶
Index ¶
- func Init()
- func NewSqlHandler() db.SqlHandler
- type SqlHandler
- func (handler *SqlHandler) Create(value interface{}) *gorm.DB
- func (handler *SqlHandler) Delete(value interface{}) *gorm.DB
- func (handler *SqlHandler) Exec(sql string, values ...interface{}) *gorm.DB
- func (handler *SqlHandler) Find(out interface{}, where ...interface{}) *gorm.DB
- func (handler *SqlHandler) First(out interface{}, where ...interface{}) *gorm.DB
- func (handler *SqlHandler) Raw(sql string, values ...interface{}) *gorm.DB
- func (handler *SqlHandler) Save(value interface{}) *gorm.DB
- func (handler *SqlHandler) Where(query interface{}, args ...interface{}) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSqlHandler ¶
func NewSqlHandler() db.SqlHandler
Types ¶
type SqlHandler ¶
func (*SqlHandler) Create ¶
func (handler *SqlHandler) Create(value interface{}) *gorm.DB
func (*SqlHandler) Delete ¶
func (handler *SqlHandler) Delete(value interface{}) *gorm.DB
func (*SqlHandler) Exec ¶
func (handler *SqlHandler) Exec(sql string, values ...interface{}) *gorm.DB
func (*SqlHandler) Find ¶
func (handler *SqlHandler) Find(out interface{}, where ...interface{}) *gorm.DB
func (*SqlHandler) First ¶
func (handler *SqlHandler) First(out interface{}, where ...interface{}) *gorm.DB
func (*SqlHandler) Save ¶
func (handler *SqlHandler) Save(value interface{}) *gorm.DB
func (*SqlHandler) Where ¶
func (handler *SqlHandler) Where(query interface{}, args ...interface{}) *gorm.DB
Click to show internal directories.
Click to hide internal directories.