mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Cleaning of include dependencies
This commit is contained in:
parent
833aeead7a
commit
1f55ddbbdb
@ -12,9 +12,11 @@
|
||||
|
||||
#include "Statement.h"
|
||||
|
||||
|
||||
namespace SQLite
|
||||
{
|
||||
|
||||
|
||||
// Open the provided database UTF-8 filename with SQLITE_OPEN_xxx provided flags.
|
||||
Database::Database(const char* apFilename, const int aFlags /*= SQLITE_OPEN_READONLY*/) : // throw(SQLite::Exception)
|
||||
mpSQLite(NULL),
|
||||
@ -80,4 +82,5 @@ void Database::check(const int aRet) const // throw(SQLite::Exception)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace SQLite
|
||||
|
@ -11,12 +11,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <sqlite3.h>
|
||||
#include "Exception.h"
|
||||
|
||||
#include "Column.h"
|
||||
|
||||
|
||||
namespace SQLite
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @brief RAII management of a SQLite Database Connection.
|
||||
*
|
||||
|
@ -33,6 +33,7 @@
|
||||
namespace SQLite
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @brief Encapsulation of the error message from SQLite3, based on std::runtime_error.
|
||||
*/
|
||||
|
@ -17,9 +17,6 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
// SQLiteC++.h requires sqlite3, and the corresponding library header
|
||||
#include <sqlite3.h>
|
||||
|
||||
// Include useful headers of SQLiteC++
|
||||
#include "Exception.h"
|
||||
#include "Database.h"
|
||||
|
@ -11,11 +11,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <sqlite3.h>
|
||||
#include "Exception.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace SQLite
|
||||
{
|
||||
|
||||
|
||||
// Forward declaration
|
||||
class Database;
|
||||
class Column;
|
||||
@ -310,4 +312,5 @@ private:
|
||||
bool mbDone; //!< true when the last executeStep() had no more row to fetch
|
||||
};
|
||||
|
||||
|
||||
} // namespace SQLite
|
||||
|
@ -12,9 +12,11 @@
|
||||
|
||||
#include "Database.h"
|
||||
|
||||
|
||||
namespace SQLite
|
||||
{
|
||||
|
||||
|
||||
// Begins the SQLite transaction
|
||||
Transaction::Transaction(Database& aDatabase) : // throw(SQLite::Exception)
|
||||
mDatabase(aDatabase),
|
||||
|
@ -10,12 +10,11 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <sqlite3.h>
|
||||
#include "Exception.h"
|
||||
|
||||
namespace SQLite
|
||||
{
|
||||
|
||||
|
||||
// Forward declaration
|
||||
class Database;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user