qbolt/qbolt/boltdb.h

25 lines
378 B
C
Raw Normal View History

#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