Module persistence

Source
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ยง

DatabaseSettings
PersistedComponents
A struct of the components that are persisted to the DB for each character
VelorenConnection ๐Ÿ”’
A database connection blessed by Veloren.

Enumsยง

ConnectionMode
SqlLogMode

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%)

Type Aliasesยง

EditableComponents