Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
templates.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 9/4/23.
3//
4
5#pragma once
6#ifndef ATLASGAMEMANAGER_TEMPLATES_HPP
7#define ATLASGAMEMANAGER_TEMPLATES_HPP
8
9#include <cstdint>
10#include <string_view>
11
13{
15
19 template < std::uint64_t id >
20 [[nodiscard]] std::string_view migration();
21
22 void runUp();
23
24} // namespace atlas::database::migrations
25
26/*
27#include "core/database/Transaction.hpp"
28#include "templates.hpp"
29
30namespace atlas::database::migrations
31{
32 template <>
33 void up< 3 >( Transaction& transaction )
34 {
35 transaction <<
36 R"(
37
38 )";
39 }
40} // namespace atlas::database::migrations
41*/
42
43#endif //ATLASGAMEMANAGER_TEMPLATES_HPP
Definition 0-games.cpp:10
std::string_view migration()
Up must be defined to create/modify the tables that are required.
void runUp()
Runs all transactions up until hitting MIGRATIONS_VERSION - 1.
Definition migration-run.cpp:37