#include "log.h"
#include "filesys.h"
#include "exceptions.h"
-#include "main.h"
#include "settings.h"
#include "util/string.h"
m_stmt_read(NULL),
m_stmt_write(NULL),
m_stmt_list(NULL),
- m_stmt_delete(NULL)
+ m_stmt_delete(NULL),
+ m_stmt_begin(NULL),
+ m_stmt_end(NULL)
{
}
void Database_SQLite3::createDatabase()
{
- assert(m_database);
+ assert(m_database); // Pre-condition
SQLOK(sqlite3_exec(m_database,
"CREATE TABLE IF NOT EXISTS `blocks` (\n"
" `pos` INT PRIMARY KEY,\n"
" `data` BLOB\n"
");\n",
NULL, NULL, NULL));
-
}
void Database_SQLite3::listAllLoadableBlocks(std::vector<v3s16> &dst)