Versions in this module Expand all Collapse all v1 v1.0.3 May 11, 2020 Changes in this version + const DRIVER + const ErrorNoConfiguration + type PostgresSQL struct + Db *sql.DB + func New(conf configuration.DatabaseRepository) (*PostgresSQL, error) + func (db *PostgresSQL) Begin() (infrastructure.Transaction, error) + func (db *PostgresSQL) Close() error + func (db *PostgresSQL) Exec(query string, args ...interface{}) (sql.Result, error) + func (db *PostgresSQL) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (db *PostgresSQL) Open() error + func (db *PostgresSQL) PingContext(ctx context.Context) error + func (db *PostgresSQL) Query(query string, args ...interface{}) (*sql.Rows, error) + func (db *PostgresSQL) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (db *PostgresSQL) QueryRow(query string, args ...interface{}) *sql.Row + func (db *PostgresSQL) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row + func (db *PostgresSQL) Run() error