Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Url string `env:"POSTGRES_URL,required"` MaxConnection int32 `env:"POSTGRES_MAX_CONNECTION,required"` MinConnection int32 `env:"POSTGRES_MIN_CONNECTION,required"` MaxConnectionIdleTime time.Duration `env:"POSTGRES_MAX_IDLE_TIME,required"` LogLevel LogLevel `env:"POSTGRES_LOG_LEVEL" envDefault:"ERROR"` }
type LogLevel ¶
func (*LogLevel) UnmarshalText ¶
type PostgreSQL ¶
type PostgreSQL interface { pgxscan.Querier SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults Begin(ctx context.Context) (pgx.Tx, error) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error) Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
Click to show internal directories.
Click to hide internal directories.