Documentation ¶
Overview ¶
Package pgxpgcall implements a jackc/pgx backend for pgcall. pgx was choosen for its postgresql type support
Index ¶
- type Config
- type DB
- func (db *DB) Exec(sql string, arguments ...interface{}) (int64, error)
- func (db *DB) Query(query string, args ...interface{}) ([]interface{}, error)
- func (db *DB) QueryMaps(query string, args ...interface{}) ([]map[string]interface{}, error)
- func (db *DB) QueryProc(method string, args ...interface{}) ([]map[string]interface{}, error)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Schema string `long:"schema" env:"SCHEMA" default:"" description:"Database functions schema name or comma delimited list"` LogLevel string `long:"loglevel" env:"LOGLEVEL" default:"error" description:"DB logging level (trace|debug|info|warn|error|none)"` TimeZone string `long:"tz" env:"TZ" default:"Europe/Moscow" description:"Database connection timezone"` Retry int `long:"retry" default:"5" description:"Retry db connect after this interfal (secs), No retry if 0"` Workers int `long:"workers" default:"2" description:"DB connections count"` }
Config defines local application flags
Click to show internal directories.
Click to hide internal directories.