Versions in this module Expand all Collapse all v0 v0.1.0 Nov 3, 2026 Changes in this version + func CloseAll() error + type Client struct + func Default() *Client + func Named(name string) *Client + func New(cfg Config) (client *Client, err error) + func NewDefault(cfg Config) (*Client, error) + func NewNamed(cfg Config) (*Client, error) + func (c *Client) Close() error + func (c *Client) MasterDB(ctx context.Context) *gorm.DB + func (c *Client) SlaveDB(ctx context.Context) *gorm.DB + type Config struct + DisableStatementCache bool + InitTimeout time.Duration + InterpolateSQL bool + LogSQL bool + Master Endpoint + Name string + SessionTimeZone string + Slaves []Endpoint + SlowThreshold time.Duration + type Endpoint struct + Charset string + Database string + DialTimeout time.Duration + Host string + Location string + Password string + Pool Pool + Port int + SSLCert string + SSLKey string + SSLMode string + SSLRootCert string + Username string + type Pool = gormcore.PoolConfig