491
questions
1
vote
1
answer
95
views
Perl DB_File Query Key is not working but key exist
I'm new with perl.
I'm writing a little code to lookup value in db from key.
If I do a loop on the %hash for keys and value : I can see my keys and my values.
But, when I want to load a specific key, ...
0
votes
0
answers
54
views
Installing berkeleydb in Windows: FileNotFoundError: 'db/include\\db.h'
OS: Windows 64
Python: Anaconda3 Python 3.11.5
enter image description here
I have the C compiler Visual Studio 2022 installed.
Thank you for your help.
I basically tried all the previous relevant ...
0
votes
1
answer
58
views
How Does Berkley DB Cursor Iterate Records
I'm using BDB cursor and calling getSaerchKeyRange. From the docs
getSaerchKeyRange: returns the smallest key greater than or equal to the specified key
Lets say our DB is the following
Key Value
...
1
vote
0
answers
46
views
Berkley DB non deterministic error occurrence when adding an encrypted database within environment
I'm trying to add new and first encrypted database within an environment which already contains several unencrypted databases.
the problem is that once in several attempts to update our software ...
0
votes
0
answers
28
views
How can I use dbstl::db_map<string, list<string>> in Berkeley DB C++?
How can i use dbstl::db_map<string, list< string>>?
I use Berkeley DB STL in C++ and Visual Studio 2015
I want to use list< string> as value of db_map, but i get an error. I ...
1
vote
1
answer
68
views
why cant I use dbstl::map<string, int> in Berkeley DB C++?
i use C++, Berkeley DB 18.1.40
STL and Visual Studio 2015.
i include libraries through the project settings
i cant use dbstl::map<string, int> and get an error, but with dbstl::map<string, ...
0
votes
1
answer
129
views
How can I use .dll or .lib Berkeley DB C++?
I cant connect the Berkeley DB C++ library to my VS 2015 project
i download a project of Berkeley DB C++: link
i run the Berkeley_DB_vs2015.sln project from the build_windows folder and compile it
i ...
0
votes
1
answer
302
views
Random key lookup on LMDB/python vs BerkeleyBD/python (How to make LMDB lookup faster)
I have this program written in python that uses berkeleydb to store data (event logs) which i migrated to lmdb. My problem is, before an event gets written, the program does a lookup if the event ...
0
votes
2
answers
114
views
Is there a python binding to the Berkeley DB XML database? [closed]
I'm trying to migrate some perl code to python and it uses Sleeypcat::DbXml 'simple' to get read access to a .dbxml file, creates a XmlManager, calls createQueryContext, openContainer and query to get ...
0
votes
0
answers
29
views
BerkeleyDB transaction multiple database single file Segfault on open
My objective is to have a single file containing two BerkeleyDB databases. The first one stores JSON documents index by their id and the second one associates the document ids with some other unique ...
0
votes
0
answers
40
views
Berkley DB stl containers in global scope
I want to open a database and create a container (set) in the global scope so that I can access it from all functions with the following code:
DbEnv* penv = open_env(".", 0u, DB_INIT_MPOOL | ...
1
vote
0
answers
1k
views
How to include all dll in all exe file using Visual Studio
I want to use BerkeleyDB in my project, but I plan to distribute the final program as an .exe file. How can I compile a program by adding both BerkeleyDB dlls to it so that I end up with a single ...
1
vote
0
answers
57
views
optimal strategies to configure berkeleydb write and read processes
I have a requirement where I have two independent processes running on an embedded linux.
One of the processes takes CAN bus messages every 10 - 25ms and writes them to a BerkeleyDB.
(NOTE: the ...
0
votes
1
answer
55
views
python struct unpack a specific C struct from Berkeley DB
I have the following C struct:
#define UUID4_LEN 37
...
typedef struct can_record {
char id[UUID4_LEN];
char *can_data;
} CAN_RECORD;
I am saving that record in Berkeley DB via the below ...
0
votes
1
answer
99
views
How to limit Berkeley DB's buffer?
I need to limit the maximum size of Berkeley's buffer. I've tried using the code below, but the buffer keeps growing.
DB_ENV *db_env;
u_int32_t env_flags;
char *DBNOMENV = "";
db_env_create(...