Documentation
¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) Delete(table string, rd *record.ActiveRecord) (int64, error)
- func (db *DB) Find(sql string, args ...interface{}) (record.ActiveRecordList, error)
- func (db *DB) FindFirst(sql string, args ...interface{}) (*record.ActiveRecord, error)
- func (db *DB) Init(user, passwd, host, dbName string, port int) error
- func (db *DB) NewDB(user, passwd, host, dbName string, port int) (*sql.DB, error)
- func (db *DB) Save(table string, rd *record.ActiveRecord) (bool, error)
- func (db *DB) Stat() sql.DBStats
- func (db *DB) Update(sql string, args ...interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) Find ¶
func (db *DB) Find(sql string, args ...interface{}) (record.ActiveRecordList, error)
func (*DB) FindFirst ¶
func (db *DB) FindFirst(sql string, args ...interface{}) (*record.ActiveRecord, error)
Click to show internal directories.
Click to hide internal directories.