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);
|
2014-04-19 08:13:34 +02:00
|
|
|
virtual std::vector<BlockPos> getBlockPos();
|
|
|
|
virtual void getBlocksOnZ(std::map<int16_t, BlockList> &blocks, int16_t zPos);
|
2014-03-05 21:41:27 +01:00
|
|
|
~DBSQLite3();
|
|
|
|
private:
|
2014-03-28 21:47:19 +01:00
|
|
|
sqlite3 *db;
|
2014-03-28 18:42:37 +01:00
|
|
|
|
|
|
|
sqlite3_stmt *stmt_get_block_pos;
|
2014-04-19 08:13:34 +02:00
|
|
|
sqlite3_stmt *stmt_get_blocks_z;
|
2014-03-05 21:41:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _DB_SQLITE3_H
|