Clean up includes in sql backend

This commit is contained in:
Zwelf 2020-08-09 17:54:25 +02:00
parent 5b53a05a40
commit 5893913922
5 changed files with 16 additions and 11 deletions

View file

@ -1,4 +1,5 @@
#include "connection_pool.h"
#include "connection.h"
#include <engine/console.h>
#if defined(CONF_SQL)

View file

@ -1,13 +1,13 @@
#ifndef ENGINE_SERVER_DATABASES_CONNECTION_POOL_H
#define ENGINE_SERVER_DATABASES_CONNECTION_POOL_H
#include "connection.h"
#include <base/tl/threading.h>
#include <atomic>
#include <memory>
#include <vector>
class IDbConnection;
struct ISqlData
{
virtual ~ISqlData() {};

View file

@ -1,8 +1,12 @@
#include "mysql.h"
#include <base/tl/threading.h>
#include <engine/console.h>
#if defined(CONF_SQL)
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/prepared_statement.h>
#include <cppconn/statement.h>
#endif
#include <string>

View file

@ -1,17 +1,17 @@
#ifndef ENGINE_SERVER_DATABASES_MYSQL_H
#define ENGINE_SERVER_DATABASES_MYSQL_H
#include "connection.h"
#include <base/tl/threading.h>
#include <engine/server/databases/connection.h>
#include <atomic>
#include <memory>
#if defined(CONF_SQL)
#include <cppconn/exception.h>
#include <cppconn/prepared_statement.h>
#include <cppconn/statement.h>
#endif
class lock;
namespace sql {
class Connection;
class PreparedStatement;
class ResultSet;
class Statement;
} /* namespace sql */
class CMysqlConnection : public IDbConnection
{

View file

@ -6,8 +6,8 @@
#include <string>
#include <vector>
#include <engine/map.h>
#include <engine/server/databases/connection_pool.h>
#include <engine/map.h>
#include <game/voting.h>
#include <game/prng.h>