droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
DatabaseBackend.hpp
Go to the documentation of this file.
1
/*
2
* (c) Copyright erarnitox.de - All rights reserved
3
* Author: Erarnitox <david@erarnitox.de>
4
*
5
* License: MIT License
6
*
7
* Description: This file should abstract away the underlying database engine.
8
*
9
* Documentation: https://droplet.erarnitox.de/doxygen/html/database
10
*/
11
12
#pragma once
13
14
// disable deprecation warning
15
#if defined(__clang__)
16
#pragma clang diagnostic push
17
#pragma clang diagnostic ignored "-Wcpp"
18
#endif
19
20
#include <pqxx/pqxx>
21
22
#if defined(__clang__)
23
#pragma clang diagnostic pop
24
#endif
25
30
namespace
NativeDatabase
{
31
using
Row
= pqxx::row;
32
using
Connection
= pqxx::connection;
33
using
BrokenConnectionException
= pqxx::broken_connection;
34
using
Transaction
= pqxx::work;
35
using
ParameterList
= pqxx::params;
36
using
Result
= pqxx::result;
37
}
// namespace NativeDatabase
NativeDatabase
Definition
DatabaseBackend.hpp:30
NativeDatabase::BrokenConnectionException
pqxx::broken_connection BrokenConnectionException
Definition
DatabaseBackend.hpp:33
NativeDatabase::Transaction
pqxx::work Transaction
Definition
DatabaseBackend.hpp:34
NativeDatabase::Row
pqxx::row Row
Definition
DatabaseBackend.hpp:31
NativeDatabase::Result
pqxx::result Result
Definition
DatabaseBackend.hpp:36
NativeDatabase::ParameterList
pqxx::params ParameterList
Definition
DatabaseBackend.hpp:35
NativeDatabase::Connection
pqxx::connection Connection
Definition
DatabaseBackend.hpp:32
src
bot_library
bot
core
database
include
DatabaseBackend.hpp
Generated by
1.18.0