9#include <sqlpp23/mysql/mysql.h>
10#include <sqlpp23/postgresql/postgresql.h>
11#include <sqlpp23/sqlite3/sqlite3.h>
12#include <sqlpp23/sqlpp23.h>
24using AnyConnection = std::variant<std::monostate, PostgresConnection, MariaDbConnection, SqliteConnection>;
38template <
class Conn,
class Statement>
60template <
class Conn,
class Update,
class Statement>
static std::string ReadFile(const std::filesystem::path &path)
sqlpp::postgresql::connection PostgresConnection
int64_t Insert(Conn &conn, const Statement &insert, std::string_view table, std::string_view key="id")
void Upsert(Conn &conn, const Update &update, const Statement &insert)
constexpr bool IsPostgres
sqlpp::sqlite3::connection SqliteConnection
std::variant< std::monostate, PostgresConnection, MariaDbConnection, SqliteConnection > AnyConnection
sqlpp::mysql::connection MariaDbConnection