Documentation ¶
Index ¶
- Variables
- func IsRowNotFound(err error) bool
- type Limit
- type Option
- type Provider
- func (p *Provider) Executor() exec.SQLExecutor
- func (p *Provider) GetTimeStampzFormat() string
- func (p *Provider) GetTimezone() *time.Location
- func (p *Provider) LogSQL() bool
- func (p *Provider) SetConnMaxIdleTime(d time.Duration) *Provider
- func (p *Provider) SetConnMaxLifetime(d time.Duration) *Provider
- func (p *Provider) SetLogSQL(log bool) *Provider
- func (p *Provider) SetMaxIdleConns(n int) *Provider
- func (p *Provider) SetMaxOpenConns(n int) *Provider
- func (p *Provider) Transaction(fn func() error) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRowNotFound = errors.New("row not exists")
Functions ¶
func IsRowNotFound ¶ added in v0.2.1
Types ¶
type Limit ¶ added in v0.2.14
type Limit interface {
LimitSQL() string
}
func NewLimitFrom ¶ added in v0.2.14
NewLimit limit ${from},${limit}
func NewLimitOffset ¶ added in v0.2.14
NewLimitOffset limit ${limit} offset ${offset}
type Provider ¶
func NewProvider ¶
func (*Provider) Executor ¶
func (p *Provider) Executor() exec.SQLExecutor
func (*Provider) GetTimeStampzFormat ¶
func (*Provider) GetTimezone ¶
func (*Provider) SetConnMaxIdleTime ¶
func (*Provider) SetConnMaxLifetime ¶
func (*Provider) SetMaxIdleConns ¶
func (*Provider) SetMaxOpenConns ¶
func (*Provider) Transaction ¶
Click to show internal directories.
Click to hide internal directories.