Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxIdleConns = 2 DefaultMaxIdleTime = time.Minute DefaultPersistence driver2.PersistenceName = "default" )
Variables ¶
This section is empty.
Functions ¶
func GetPersistenceName ¶
func GetPersistenceName(cs ConfigProvider, prefix string) driver2.PersistenceName
Types ¶
type BaseDB ¶
type BaseDB[T DBTransaction] struct { Txn T // contains filtered or unexported fields }
func NewBaseDB ¶
func NewBaseDB[T DBTransaction](newTransaction func() (T, error)) *BaseDB[T]
func (*BaseDB[T]) BeginUpdate ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig(configProvider ConfigProvider) *Config
func (*Config) GetDriverType ¶
func (c *Config) GetDriverType(name driver2.PersistenceName) (driver.PersistenceType, error)
func (*Config) UnmarshalDriverOpts ¶
func (c *Config) UnmarshalDriverOpts(name driver2.PersistenceName, v any) error
type ConfigProvider ¶
type DBTransaction ¶
Click to show internal directories.
Click to hide internal directories.