Giter Site home page Giter Site logo

DB names about whitedb HOT 2 OPEN

priitj avatar priitj commented on June 17, 2024
DB names

from whitedb.

Comments (2)

priitj avatar priitj commented on June 17, 2024

Hello, thanks for reporting! I was unable to reproduce the bug from command line, how are you creating the database?

(The command parser itself has a bug though, which will be fixed ASAP)

from whitedb.

Rozhdestvenskii avatar Rozhdestvenskii commented on June 17, 2024

Hi.
I was using code like this:

`#include <whitedb/dbapi.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <whitedb/indexapi.h>
#ifdef __cplusplus
}
#endif

#include
#include

class WhiteBDWrapper {
public:
WhiteBDWrapper(const uint64_t& v1, const uint64_t& v2, const uint64_t& v3) {
m_dbname = std::to_string(v1) + std::to_string(v2) + std::to_string(v3);

    int err = wg_delete_database((char*)m_dbname.c_str());
    m_db = wg_attach_logged_database((char*)m_dbname.c_str(),50*1024*1024);
};

~WhiteBDWrapper() {
    int err = wg_delete_database((char*)m_dbname.c_str());
}

std::string m_dbname;
void* m_db = nullptr;

};

class SomeClass {
public:
SomeClass(std::unique_ptr db) : dataBase(std::move(db)) {
};

std::unique_ptr<WhiteBDWrapper> dataBase;

};

int main(int argc, char **argv) {
SomeClass a(std::make_unique(1,1,1));
SomeClass b(std::make_unique(2,1,1));
}`

But now I couldn't repeat this error. I checked in my main project - DB's with names line 312 or 532 created with no problems. May be it was some bug in my code, dunno.

from whitedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.