Documentation ¶
Index ¶
- type Instance
- func (instance *Instance) Connect(dsn string, config *gorm.Config) (err error)
- func (instance *Instance) EnableConnectionPool(maxIdleConns int, maxOpenConns int, connMaxLifetime time.Duration) error
- func (instance *Instance) RegisterResolverConfig(config dbresolver.Config, tables ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
func (*Instance) EnableConnectionPool ¶
func (instance *Instance) EnableConnectionPool(maxIdleConns int, maxOpenConns int, connMaxLifetime time.Duration) error
EnableConnectionPool enables connection pool
func (*Instance) RegisterResolverConfig ¶
func (instance *Instance) RegisterResolverConfig(config dbresolver.Config, tables ...interface{}) error
RegisterResolverConfig registers resolver configuration for current connection
Click to show internal directories.
Click to hide internal directories.