VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::MigrationOptions Struct Reference

#include <Migrator.hpp>

Public Attributes

std::string HistoryTable = "schema_migrations"
 
int64_t LockKey = 727274
 

Detailed Description

Knobs for RunMigrations; the defaults suit a single plugin owning its database.

Definition at line 18 of file Migrator.hpp.

Member Data Documentation

◆ HistoryTable

std::string VoltMod::MigrationOptions::HistoryTable = "schema_migrations"

Migration-history table. Must match [A-Za-z_][A-Za-z0-9_]* - it is interpolated into SQL.

Definition at line 21 of file Migrator.hpp.

◆ LockKey

int64_t VoltMod::MigrationOptions::LockKey = 727274

Lock key serializing concurrent loads that share a database (a Postgres advisory lock, a MariaDB named lock; SQLite relies on its own write lock). Plugins sharing one database should use distinct table names AND distinct lock keys.

Definition at line 26 of file Migrator.hpp.


The documentation for this struct was generated from the following file: