Versions in this module Expand all Collapse all v3 v3.0.0 Feb 20, 2023 Changes in this version + const BundleName + const DEFAULT + var ErrUnknownConnection = errors.New("unknown connection") + type Bundle struct + func NewBundle() *Bundle + func (b *Bundle) Build(builder di.Builder) error + func (b *Bundle) DependsOn() []string + func (b *Bundle) Name() string + type Config struct + AfterOpen func(name string, db *nap.DB) + ConnMaxLifetime time.Duration + Driver string + MaxIdleConns int + MaxOpenConns int + Nodes []string + type Configs map[string]Config + type Registry struct + func NewRegistry(conf Configs) (*Registry, error) + func (r *Registry) Close() (err error) + func (r *Registry) Connection() (*nap.DB, error) + func (r *Registry) ConnectionWithName(name string) (_ *nap.DB, err error) + func (r *Registry) Driver() (string, error) + func (r *Registry) DriverWithName(name string) (string, error) Other modules containing this package github.com/gozix/sql github.com/gozix/sql/v2