Documentation ¶
Index ¶
- func PerformExec(dbConn *sqlx.DB, query string, params ...interface{}) (result sql.Result, err error)
- func PerformGet(dbConn *sqlx.DB, result interface{}, query string, params ...interface{}) (empty bool, err error)
- func PerformSelect(dbConn *sqlx.DB, result interface{}, query string, params ...interface{}) (empty bool, err error)
- type DbConf
- type Option
- type PostgresConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerformExec ¶
func PerformGet ¶
Types ¶
type DbConf ¶
DbConf holds the database configuration information.
type PostgresConnection ¶
type PostgresConnection struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.2.1
func New(conf DbConf, opts ...Option) *PostgresConnection
func (*PostgresConnection) CloseConnection ¶
func (p *PostgresConnection) CloseConnection()
func (*PostgresConnection) Connection ¶ added in v0.2.2
func (p *PostgresConnection) Connection() *sql.DB
Click to show internal directories.
Click to hide internal directories.