Documentation ¶
Index ¶
- func Exec(pool *pgxpool.Pool, tx pgx.Tx) ...
- func MigrateDB(pg *PostgresInstance, configService config_service.ConfigService)
- func Query(pool *pgxpool.Pool, tx pgx.Tx) func(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
- func QueryRow(pool *pgxpool.Pool, tx pgx.Tx) func(ctx context.Context, sql string, args ...any) pgx.Row
- type PostgresInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateDB ¶
func MigrateDB(pg *PostgresInstance, configService config_service.ConfigService)
Types ¶
type PostgresInstance ¶
func NewPostgresInstance ¶
func NewPostgresInstance(configService config_service.ConfigService) (*PostgresInstance, func())
func (*PostgresInstance) Close ¶
func (pg *PostgresInstance) Close()
Click to show internal directories.
Click to hide internal directories.