25 lines
378 B
C++
25 lines
378 B
C++
#ifndef BOLTDB_H
|
|
#define BOLTDB_H
|
|
|
|
#include "interop.h"
|
|
#include <functional>
|
|
|
|
typedef std::function<void(QByteArray)> NameReciever;
|
|
|
|
class BoltDB
|
|
{
|
|
protected:
|
|
BoltDB();
|
|
|
|
GoInt64 gmsDbRef;
|
|
|
|
public:
|
|
static BoltDB* createFrom(QString filePath, QString &errorOut);
|
|
|
|
bool listBucketsAtRoot(QString& errorOut, NameReciever cb);
|
|
|
|
~BoltDB();
|
|
};
|
|
|
|
#endif // BOLTDB_H
|