'c4Internal::Database' has protected destructor
#include "Database.hh"
static const C4DatabaseConfig kDBConfig = { .flags = (kC4DB_Create | kC4DB_AutoCompact | kC4DB_SharedKeys), .storageEngine = kC4SQLiteStorageEngine, .versioning = kC4RevisionTrees,};
//==============================================================================int main (int argc, char* argv[]){ Database db ("./c4db/db", kDBConfig);
db.putRawDocument("test", slice("myKey"), slice(""), slice("goldenRatio") );
Record record = db.getRawDocument("test", slice("myKey")); std::cout << record.key().asString() << ":" << record.body().asString();}
On May 27, 2018, at 2:07 AM, Adam Wilson <adam.el...@gmail.com> wrote:Should I be instantiating the Database class differently?
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/YgxDAvueSeI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/45C0F2A0-9D10-4A2B-8B55-4FFE752A7B75%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.