package
Version:
v0.0.0-...-2ebbeb6
Opens a new window with list of versions in this module.
Published: Oct 25, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Host string `yaml:"host" validate:"required"`
Port int `yaml:"port" validate:"required"`
User string `yaml:"user" validate:"required"`
Password string `yaml:"password" env:"ROSTAM_POSTGRES_PASSWORD" validate:"required"`
}
type DB interface {
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
QueryRow(context.Context, string, ...interface{}) pgx.Row
BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
Close()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.