|
VoltMod
C++23 framework for CS2 server plugins
|
#include <Migrator.hpp>
Public Attributes | |
| std::string | HistoryTable = "schema_migrations" |
| int64_t | LockKey = 727274 |
Knobs for RunMigrations; the defaults suit a single plugin owning its database.
Definition at line 18 of file Migrator.hpp.
| 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.
| 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.