Documentation
¶
Overview ¶
Package glsql (Gitaly SQL) is a helper package to work with plain SQL queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
DB is a helper struct that should be used only for testing purposes.
func GetDB ¶
GetDB returns a wrapper around the database connection pool. Must be used only for testing. The new database 'gitaly_test' will be re-created for each package that uses this function. The best place to call it is in individual testing functions It uses env vars:
PGHOST - required, URL/socket/dir PGPORT - required, binding port PGUSER - optional, user - `$ whoami` would be used if not provided
Click to show internal directories.
Click to hide internal directories.