Documentation ¶
Index ¶
- type Dao
- func (dao *Dao) Begin() error
- func (dao *Dao) Commit() error
- func (dao *Dao) Execute(sql string, params interface{}) (int64, error)
- func (dao *Dao) Get(dest interface{}, sql string, params ...interface{}) error
- func (dao *Dao) Query(sql string, params interface{}) (*sqlx.Rows, error)
- func (dao *Dao) Rollback() error
- type DaoFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
type DaoFactory ¶
type DaoFactory struct {
// contains filtered or unexported fields
}
func (*DaoFactory) Close ¶
func (df *DaoFactory) Close() error
func (*DaoFactory) GetDao ¶
func (df *DaoFactory) GetDao() *Dao
func (*DaoFactory) Ping ¶
func (df *DaoFactory) Ping() error
func (*DaoFactory) SetConnMaxLifetime ¶
func (df *DaoFactory) SetConnMaxLifetime(d time.Duration)
func (*DaoFactory) SetMaxIdleConns ¶
func (df *DaoFactory) SetMaxIdleConns(n int)
func (*DaoFactory) SetMaxOpenConns ¶
func (df *DaoFactory) SetMaxOpenConns(n int)
func (*DaoFactory) Stat ¶
func (df *DaoFactory) Stat() sql.DBStats
Click to show internal directories.
Click to hide internal directories.