Expand description
DB operations and schema migrations
Modulesยง
- character ๐
- Database operations related to character data
- character_
loader - character_
updater - diesel_
to_ ๐rusqlite - embedded ๐
- error
- Consolidates rusqlite and validation errors under a common error type
- json_
models ๐ - models ๐
Structsยง
- Database
Settings - Persisted
Components - A struct of the components that are persisted to the DB for each character
- Veloren
Connection ๐ - A database connection blessed by Veloren.
Enumsยง
Functionsยง
- establish_
connection ๐ - run_
migrations - Runs any pending database migrations. This is executed during server startup
- rusqlite_
profile_ ๐callback - rusqlite_
trace_ ๐callback - set_
log_ ๐mode - vacuum_
database - Runs after the migrations. In some cases, it can reclaim a significant amount of space (reported 30%)