Documentation ¶
Index ¶
- func IsNotFound(err error) bool
- type DB
- type Stmt
- func (s *Stmt) BatchInsert(data []interface{}) ([]int64, error)
- func (s *Stmt) Count() (int64, error)
- func (s *Stmt) Exec(query string, args ...interface{}) (int64, error)
- func (s *Stmt) Group(group string) *Stmt
- func (s *Stmt) Insert(data interface{}) (int64, error)
- func (s *Stmt) Limit(limit int) *Stmt
- func (s *Stmt) Offset(offset int) *Stmt
- func (s *Stmt) Order(order string) *Stmt
- func (s *Stmt) Query(result interface{}) error
- func (s *Stmt) Raw(query string, args ...interface{}) *Stmt
- func (s *Stmt) SetLogger(l *log.Logger) *Stmt
- func (s *Stmt) Sort(sort string) *Stmt
- func (s *Stmt) Update(data interface{}) (int64, error)
- func (s *Stmt) Where(f string, args ...interface{}) *Stmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct { IP string Port int DBName string UserName string Passwd string Charset string Timeout int }
DB db instance.
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
Stmt db stmt.
func (*Stmt) BatchInsert ¶ added in v1.11.1
BatchInsert 数组插入
Click to show internal directories.
Click to hide internal directories.