Versions in this module Expand all Collapse all v1 v1.0.1 Jan 30, 2026 v1.0.0 Jan 28, 2026 Changes in this version + type Connection interface + Db func() *gorm.DB + DbRo func() *gorm.DB + Initialize func() error + func NewPostgresqlConnection(readWriteConfiguration *ConnectionConfiguration, ...) (Connection, error) + type ConnectionConfiguration struct + Database string + Host string + MaxConnectionLifetime time.Duration + MaxIdleConnectionLifetime time.Duration + MaxIdleConnections int + MaxOpenConnections int + Password string + Port string + User string + type JSONB map[string]any + func (JSONB) GormDataType() string + func (j *JSONB) Scan(value interface{}) error + func (j *JSONB) UnmarshalJSON(data []byte) error + func (j JSONB) MarshalJSON() ([]byte, error) + func (j JSONB) Value() (driver.Value, error) + type JSONBG struct + V T + func (*JSONBG[T]) GormDataType() string + func (j *JSONBG[T]) MarshalJSON() ([]byte, error) + func (j *JSONBG[T]) Scan(value interface{}) error + func (j *JSONBG[T]) UnmarshalJSON(b []byte) error + func (j *JSONBG[T]) Value() (driver.Value, error) + type PostgresqlConnection struct + ReadOnlyConfiguration *ConnectionConfiguration + ReadWriteConfiguration *ConnectionConfiguration + func (p *PostgresqlConnection) Db() *gorm.DB + func (p *PostgresqlConnection) DbRo() *gorm.DB + func (p *PostgresqlConnection) Initialize() error + type Repository interface + Initialize func(connection Connection) error