Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCreateConnectionPool ¶
func MustCreateConnectionPool(cfg *config.PostgresCfg) *sql.DB
func NewSubsRepo ¶
func NewSubsRepo(db DBTX, cfg *config.RepoConfig) *subsRepo
Types ¶
type DBTX ¶
type DBTX interface {
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
}
DBTX is an abstraction of sql.DB and sql.Tx.
Click to show internal directories.
Click to hide internal directories.