3#include "cesium-sqlite3.h"
8struct CESIUM_SQLITE(sqlite3);
9struct CESIUM_SQLITE(sqlite3_stmt);
19 void operator()(CESIUM_SQLITE(sqlite3*) pConnection)
noexcept;
28 void operator()(CESIUM_SQLITE(sqlite3_stmt*) pStatement)
noexcept;
59 const std::string& sql);
Classes that support asynchronous operations.
std::unique_ptr< CESIUM_SQLITE(sqlite3), DeleteSqliteConnection > SqliteConnectionPtr
A std::unique_ptr<sqlite3> that will properly delete the connection using the SQLite API.
std::unique_ptr< CESIUM_SQLITE(sqlite3_stmt), DeleteSqliteStatement > SqliteStatementPtr
A std::unique_ptr<sqlite3_stmt> that will properly delete the statement using the SQLite API.
A deleter that can be used with std::unique_ptr to properly destroy a SQLite connection when it is no...
void operator()(CESIUM_SQLITE(sqlite3 *) pConnection) noexcept
Closes the provided sqlite connection when called.
A deleter that can be used with std::unique_ptr to properly destroy a SQLite prepared statement when ...
void operator()(CESIUM_SQLITE(sqlite3_stmt *) pStatement) noexcept
Finalizes the provided sqlite statement when called.
Helper functions for working with SQLite.
static SqliteStatementPtr prepareStatement(const SqliteConnectionPtr &pConnection, const std::string &sql)
Create a prepared statement.