VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
Migrator.cpp File Reference
#include <VoltMod/Core/Files/File.hpp>
#include <VoltMod/Core/Files/Paths.hpp>
#include <VoltMod/Core/Log.hpp>
#include <VoltMod/Core/Time/Durations.hpp>
#include <VoltMod/Database/Client.hpp>
#include <algorithm>
#include <cctype>
#include <filesystem>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  VoltMod::Migration
 

Namespaces

namespace  VoltMod
 

Functions

static bool VoltMod::IsValidTableName (const std::string &name)
 
static std::string VoltMod::HistoryTableDdl (const std::string &table)
 
template<class Conn >
static void VoltMod::ApplyMigration (Conn &conn, const std::string &table, const Migration &migration, const std::vector< std::string > &statements)
 
MigrationResult VoltMod::RunMigrations (Database &db, std::string_view dir, const MigrationOptions &options={})