Documentation
¶
Index ¶
- func Close()
- func Connect(ctx context.Context, cfg Config, logger zerolog.Logger) (*pgxpool.Pool, error)
- func Initialize(ctx context.Context, cfg Config, log zerolog.Logger) (*pgxpool.Pool, error)
- func ResetSchema(ctx context.Context, pool *pgxpool.Pool) error
- func RunInTx(ctx context.Context, fn func(TxHandler) error) error
- type Config
- type Handler
- type SchemaInfo
- type TxHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type Handler ¶
type Handler interface { RunInTx(fn func(TxHandler) error) error Query(stmt string, args ...interface{}) (pgx.Rows, error) QueryRow(stmt string, args ...interface{}) pgx.Row Exec(stmt string, args ...interface{}) (pgconn.CommandTag, error) CopyFrom(tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type SchemaInfo ¶
type SchemaInfo struct { CurrentVersion int32 LatestVersion int32 // contains filtered or unexported fields }
func GetSchemaInfo ¶
Click to show internal directories.
Click to hide internal directories.