Documentation ¶
Index ¶
- type Option
- type Provider
- func (p *Provider) Executor() exec.SQLExecutor
- func (p *Provider) GetTimeStampzFormat() string
- func (p *Provider) GetTimezone() *time.Location
- 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
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.