Documentation
¶
Index ¶
- type ModDB
- func Create(structPtr interface{}) (retModDb *ModDB)
- func Db(dsName ...string) (retModDb *ModDB)
- func Delete(structPtr interface{}) (retModDb *ModDB)
- func Model(structPtr interface{}) (modDb *ModDB)
- func Save(structPtr interface{}) (retModDb *ModDB)
- func Tx(tx *sql.Tx, dsName ...string) (retModDb *ModDB)
- func Where(sqlStr string, args ...interface{}) (retModDb *ModDB)
- func (modDb *ModDB) Count(count *int) (retModDb *ModDB)
- func (modDb *ModDB) Create(structPtr interface{}) (retModDb *ModDB)
- func (modDb *ModDB) Db(dsName ...string) (retModDb *ModDB)
- func (modDb *ModDB) Delete(structPtr interface{}) (retModDb *ModDB)
- func (modDb *ModDB) Error() error
- func (modDb *ModDB) ErrorFunc() string
- func (modDb *ModDB) First(structPtr interface{}) (retModDb *ModDB)
- func (modDb *ModDB) GetErr() (error, string)
- func (modDb *ModDB) Query(slicePtr interface{}) (retModDb *ModDB)
- func (modDb *ModDB) Row(columnList ...string) (*sql.Row, error)
- func (modDb *ModDB) Rows(columnList ...string) (*sql.Rows, error)
- func (modDb *ModDB) Save(structPtr interface{}) (retModDb *ModDB)
- func (modDb *ModDB) Tx(tx *sql.Tx, dsName ...string) (retModDb *ModDB)
- func (modDb *ModDB) Update(column string, value interface{}) (retModDb *ModDB)
- func (modDb *ModDB) UpdateColumns(columnValueMap bsql.CV) (retModDb *ModDB)
- func (modDb *ModDB) Where(sqlStr string, args ...interface{}) (retModDb *ModDB)
- type OrmModel
- type OrmModelField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModDB ¶
type ModDB struct { RowsAffected int64 LastInsertId int64 // contains filtered or unexported fields }
func (*ModDB) UpdateColumns ¶
type OrmModelField ¶
type OrmModelField struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.