Documentation
¶
Index ¶
Constants ¶
View Source
const PostgresPrefix = "postgres://"
PostgresPrefix is the DSN scheme that routes to the hosted Postgres path.
View Source
const (
UniqueViolation = "23505"
)
Variables ¶
This section is empty.
Functions ¶
func CheckNotUnique ¶
func MigrationDSN ¶ added in v1.40.1
MigrationDSN defaults sslmode to "disable" when a Postgres DSN doesn't set one, so the migration driver (lib/pq, which defaults to "require") can reach the local/compose database. The runtime pool keeps pgx's own "prefer" default. DSNs that are non-Postgres, malformed, or carry an unparseable query are returned untouched.
Types ¶
Click to show internal directories.
Click to hide internal directories.