|
Player12
An open source football management simulator
|
#include <sqlite3.h>#include <span>#include <string>#include <string_view>#include <vector>#include "database/database_exception.h"#include "global/build_info.h"Go to the source code of this file.
Classes | |
| struct | Migrations::ColumnSpec |
| struct | Migrations::MigrationContext |
| struct | Migrations::Migration |
| class | Migrations::FutureVersionError |
| struct | Migrations::MigrationReport |
Namespaces | |
| namespace | SaveFormat |
| namespace | Migrations |
Functions | |
| std::span< const Migration > | Migrations::registry () |
| int | Migrations::currentSchemaVersion () |
| std::string | Migrations::checksum (const Migration &migration) |
| int | Migrations::readSchemaVersion (sqlite3 *db) |
| MigrationReport | Migrations::migrate (const DatabaseConnection &connection, std::span< const Migration > migrations=registry()) |
| bool | Migrations::tableExists (sqlite3 *db, std::string_view table) |
| bool | Migrations::columnExists (sqlite3 *db, std::string_view table, std::string_view column) |
| int | Migrations::foreignKeyIssues (sqlite3 *db) |
Variables | |
| constexpr std::string_view | SaveFormat::FORMAT_ID = "open-football-career" |
| const std::string_view | SaveFormat::GAME_VERSION = BuildInfo::version() |
| constexpr std::string_view | SaveFormat::ENGINE_VERSION = "1.0.0-player12.1" |
| constexpr std::string_view | SaveFormat::RULES_EDITION = "2026-27" |
| constexpr int | SaveFormat::RNG_VERSION = 2 |
| constexpr int | SaveFormat::SIM_VERSION = 1 |