Comments (2)
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.
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)
- 32 and 64 bit process error HOT 2
- wgdb ls or is there a way to list all databases in memory? HOT 1
- Support for extending database size? HOT 4
- dump files not working after reboot HOT 1
- Ordering of result of wg_find_record_int function HOT 1
- Compilation Warnings on Windows (x64) HOT 1
- Question: find first missing entry HOT 2
- Image processing HOT 1
- wg_database_freesize result never decreases HOT 2
- Incorrect consistency check
- wg memory error: cannot attach to shared memory (No permission). with gtest HOT 2
- http://whitedb.org/ is down HOT 1
- commercial licence HOT 1
- Using whitedb between (docker) containers HOT 2
- Clarification HOT 1
- indexapi.h missing C extern for C++ HOT 1
- Issue deleting a record who has the same value in a Template Index Column as another record HOT 5
- Error when restoring the database (with indexing) from the log file.
- License Question HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whitedb.