golazy.dev
–
golazy.dev
/
pg
Index
|
Files
|
Directories
package pg ¶
import "golazy.dev/pg"
Functions ¶
func Open ¶
Open creates a pgx pool for databaseURL.
func Open(ctx context.Context, databaseURL string) (*pgxpool.Pool, error)
func OpenEnv ¶
OpenEnv creates a pgx pool from the first non-empty environment variable in names. If names is empty, DATABASE_URL is used.
func OpenEnv(ctx context.Context, names ...string) (*pgxpool.Pool, error)
Directories ¶
| Path | Synopsis |
|---|---|
| pg/pgjobs | Package pgjobs implements a PostgreSQL backend for golazy.dev/lazyjobs. |
| pg/pgmigrate | Package pgmigrate implements PostgreSQL migrations for golazy.dev/lazymigrate. |
| pg/withpg | Package withpg starts embedded PostgreSQL servers for local development and integration tests. |
| pg/withpg/cmd/withpg |
Package pg contains PostgreSQL helpers shared by the concrete GoLazy PostgreSQL backend packages.