Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `validate:"required" schema:"Хост"`
Port int `validate:"required" schema:"Порт"`
Database string `validate:"required" schema:"База данных"`
Username string `schema:"Логин"`
Password string `schema:"Пароль"`
Schema string `schema:"Схема"`
MaxOpenConn int `` /* 176-byte string literal not displayed */
Params map[string]string `schema:"Дополнительные параметры подключения"`
}
type LogTracer ¶
type LogTracer struct {
// contains filtered or unexported fields
}
func NewLogTracer ¶
func (LogTracer) TraceQueryEnd ¶
type MigrationRunner ¶
type Option ¶
type Option func(db *Client)
func WithApplicationName ¶ added in v1.52.2
func WithCreateSchema ¶ added in v1.50.1
func WithQueryTracer ¶
func WithQueryTracer(tracers ...pgx.QueryTracer) Option
Click to show internal directories.
Click to hide internal directories.