Skip to main content

Module db

Module db 

Source
Expand description

Database pool and migrations.

Constants§

MIN_POSTGRES_MAJOR
Oldest supported PostgreSQL major version. CI tests this one and the newest; older servers are refused at start-up with a clear message instead of failing later on a query.

Statics§

MIGRATOR
Migrations from ./migrations, embedded into the binary at compile time.

Functions§

connect
migrate
session_options
Session settings of every TeamCraft connection, sent with the startup message (no extra round trip):