minetestmapper/db-sqlite3.h

21 lines
384 B
C
Raw Normal View History

2014-03-05 21:41:27 +01:00
#ifndef _DB_SQLITE3_H
#define _DB_SQLITE3_H
#include "db.h"
#include <sqlite3.h>
class DBSQLite3 : public DB {
public:
DBSQLite3(const std::string &mapdir);
virtual std::vector<int64_t> getBlockPos();
virtual DBBlockList getBlocksOnZ(int zPos);
~DBSQLite3();
private:
sqlite3 *db;
sqlite3_stmt *stmt_get_block_pos;
sqlite3_stmt *stmt_get_blocks;
2014-03-05 21:41:27 +01:00
};
#endif // _DB_SQLITE3_H