Skip to main content

Module backend

Module backend 

Source
Expand description

The two database backends and their migrations.

Production uses Postgres, local development SQLite (see archive/PROJECT.md, State storage). Each backend has its own migration files because column types differ (TIMESTAMPTZ / UUID / JSONB in Postgres, text in SQLite); both sets always have the same versions.

Structs§

UnsupportedUrl
The URL doesn’t name a supported database.

Enums§

Backend
A database backend.

Functions§

database_place
Where url’s database is, for a person to check: a Postgres server’s host:port (or its socket’s folder) as sqlx reads the URL (its host= and port= parameters, the PG* variables, the defaults), a SQLite file’s path; never its user or password (the user, 2026-11-15: a role waiting for its database names where, so a typo shows).
names_a_password
Whether a query parameter’s name, percent-decoded and in any case, names a password.
redact_password
url with its passwords replaced by ***, for messages and logs: the user-info part’s (user:***@host) and a query parameter’s naming one (?password=***, sslpassword; B203: sqlx takes both).
unknown_postgres_parameters
The names of a Postgres URL’s query parameters sqlx would ignore (sslmod=require, a typo), percent-decoded: for schedr to warn of them by name, since sqlx’s own warning, kept out of the log, shows their values (B203’s review).