mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Clean up includes in sql backend
This commit is contained in:
parent
5b53a05a40
commit
5893913922
|
@ -1,4 +1,5 @@
|
|||
#include "connection_pool.h"
|
||||
#include "connection.h"
|
||||
|
||||
#include <engine/console.h>
|
||||
#if defined(CONF_SQL)
|
||||
|
|
|
@ -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() {};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue