Documentation
¶
Overview ¶
Package e2edb is the ONE guard every e2e fixture command runs before it touches a database: the database must be an e2e one, named "…_e2e".
🔴 IT ASKS PGX WHICH DATABASE THE DSN NAMES, NEVER THE URL'S PATH. pgx honours `?dbname=` and `?database=` over the path, and a key=value DSN has no path at all, so a path check passes `postgres://…/x_e2e?dbname=postgres` and then connects to postgres. pgconn.ParseConfig is the parser pgx's own connect runs (db.Connect and pgx.Connect both go through it), so the name checked here is the name connected to.
Index ¶
Constants ¶
const Suffix = "_e2e"
Suffix is what an e2e database's name ends in.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.