Module pages::db

source · []

Structs

Use an existing database pool
InnerSite 🔒
type encapsulating username and hashed password of a user
Data required to register a new user
Data required to add a new site
data required to update them email of a user

Enums

Connect to databse
types of credentials used as identifiers during login

Functions

map postgres errors to ServiceError types
map custom row not found error to DB error