Documentation ¶
Index ¶
- func EnableLog(tag bool)
- type Json
- type ScanHandler
- type Scanner
- type Session
- type Transactor
- type UCore
- type UDB
- func (u *UDB) Close() error
- func (u *UDB) Exec(query string, conditions ...interface{}) (int64, error)
- func (u *UDB) Query(query string, conditions ...interface{}) *Session
- func (u *UDB) SetConnMaxIdleTime(d time.Duration)
- func (u *UDB) SetConnMaxLifetime(d time.Duration)
- func (u *UDB) SetMaxIdleConns(n int)
- func (u *UDB) SetMaxOpenConns(n int)
- func (u *UDB) Transaction(transactor Transactor) (err error)
- type UTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScanHandler ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) Find ¶
func (s *Session) Find(handler ScanHandler) error
func (*Session) Get ¶
func (s *Session) Get(handler ScanHandler) error
type Transactor ¶
type UDB ¶
type UDB struct {
// contains filtered or unexported fields
}
func (*UDB) SetConnMaxIdleTime ¶
func (*UDB) SetConnMaxLifetime ¶
func (*UDB) SetMaxIdleConns ¶
func (*UDB) SetMaxOpenConns ¶
func (*UDB) Transaction ¶
func (u *UDB) Transaction(transactor Transactor) (err error)
Click to show internal directories.
Click to hide internal directories.