Documentation ¶
Index ¶
- func Clear(name string)
- func Delete(name string)
- func EmptyResultError(err error) bool
- func Name(data interface{}) string
- type Config
- type DBConnect
- func (db *DBConnect) Close()
- func (db DBConnect) DB() *sql.DB
- func (db DBConnect) Exec(sqlcmd string, args ...interface{}) (sql.Result, error)
- func (db DBConnect) ExecBatch(callback func(*DBConnect) error) error
- func (db DBConnect) Insert(data interface{}, exclude ...Exclude) (sql.Result, error)
- func (db DBConnect) Query(sqlcmd string, args ...interface{}) (map[string]string, error)
- func (db DBConnect) QueryList(sqlcmd string, args ...interface{}) ([]map[string]string, error)
- func (db DBConnect) Select(result interface{}, sqlcmd string, args ...interface{}) error
- func (db DBConnect) SelectFrom(result interface{}, table string, cond string, args ...interface{}) error
- func (db DBConnect) SelectWhere(result interface{}, cond string, args ...interface{}) error
- func (db DBConnect) Update(data interface{}, keys Keys, exclude ...Exclude) (sql.Result, error)
- type Exclude
- type Keys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyResultError ¶ added in v0.0.8
Types ¶
type DBConnect ¶
func NewConnect ¶
func (DBConnect) SelectFrom ¶
func (DBConnect) SelectWhere ¶
Click to show internal directories.
Click to hide internal directories.