Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func GetConnection ¶
GetConnection returns pgx connection pool with max_connections=20 Note https://godoc.org/github.com/jackc/pgx#hdr-PgBouncer if you want to use it together with PgBouncer
func (*DB) CloseConnections ¶
func (db *DB) CloseConnections()
func (*DB) RetrieveBirthdayMessage ¶
RetrieveBirthdayMessage gets the birthday message y calling a corresponding sproc. The sproc takes the current date as well to simplify testing.
Click to show internal directories.
Click to hide internal directories.