Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2023 Changes in this version + type PostgresConfig struct + Database string + Host string + MaxConnLifetime time.Duration + MaxIdleConnTime time.Duration + MaxIdleConns int + MaxOpenConns int + Options string + Password string + Port string + Username string + func PosgresConfigFromEnv() PostgresConfig + type Repository interface + Close func(context.Context) error + Create func(ctx context.Context, data any) error + Delete func(data any) TX + Find func(data any) TX + Migrate func(ctx context.Context, model any) error + Raw func(ctx context.Context, query string, args ...any) error + Update func(data any) TX + func NewGormRepository(conf PostgresConfig) (Repository, error) + type TX interface + Commit func(ctx context.Context) error + Limit func(limit int) TX + Not func(field string, value any) TX + Or func(field string, value any) TX + Where func(field string, value any) TX