e2edb

package
v0.274.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const Suffix = "_e2e"

Suffix is what an e2e database's name ends in.

Variables

This section is empty.

Functions

func Check

func Check(dsn string) error

Check is nil only when dsn names a database whose name ends in Suffix, as pgx resolves the name.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL