GNU dbm is a key-value database. It provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data.
Questions tagged [gdbm]
41 questions
1
vote
1 answer
GDBM_File interoperability issue transitioning from older 32-bit Perl to 64-bit Perl
I have some GDBM files created using an old 32-bit (i686) version of Perl (5.8.6) that I want to use with an x86_64 Perl 5.28.0, but it doesn't work. Here's my test code:
use strict;
use warnings;
use GDBM_File;
my $dbmfile =…

Ed Sabol
- 433
- 4
- 15
1
vote
1 answer
Convert Python shelve from dbm.gnu to dbm.dumb
I am trying to convert data stored in a non-dumb shelve to a dumb shelve, to be able to access my data at a location where the non-dumb libraries are not installed.
My test code for transforming the db data looks like this:
import numpy as np
import…

zanzu
- 25
- 4
1
vote
0 answers
astropy multiprocessing access to IERS data
We are using astropy to perform large SKA simulations running in Dask on single nodes or cluster. We use both Time and astroplan.Observer in our calculations. Some fraction of the time, we see errors in access of the IERS data. For…

Tim Cornwell
- 91
- 7
1
vote
1 answer
how to install gdbm on openwrt
I never used openwrt before but now I need to install gdbm package on openwrt. Could you please suggest me how to do it.
Make is not working on openwrt
Downloading gdbm sources and compiling them is giving me when configuring
configure: error: in…

Harsha
- 13
- 1
- 5
1
vote
1 answer
dyld: lazy symbol binding failed: Symbol not found: __gdbm_lock_file error with GDBM gem
I'm getting this odd error when I try to use the Ruby GDBM gem. The gem used to work. Now when I invoke it I get this error (across many different versions of ruby):
dyld: lazy symbol binding failed: Symbol not found: __gdbm_lock_file
Referenced…

Kelsey Hannan
- 2,857
- 2
- 30
- 46
1
vote
1 answer
Get index of database iteration on ruby
I'm trying to iterate through database file with gdbm, create objects with values I get and assign them to an array. The problem is I can't seem to get index of iteration and I need it for my array. Here is the code:
bots_directory =…

PoVa
- 995
- 9
- 24
1
vote
1 answer
GDBM vs a simple JSON, INI or YAML configuration file
I am studying about file based key-value databases such as GDBM and I can not see any real advantage versus using a configuration file. Both technologies let you store in a file keys and values.
Is it the advantage of GDBM the performance, does GDBM…

Vicente Bolea
- 1,409
- 16
- 39
1
vote
1 answer
Reading perl flat file db with php
I have an old flat file perl db that's part of an eCommerce site I want to migrate to a new php application.
Is it possible to read with php the "table" files have no file extension and seem not be just csv's or similar?

Louise McMahon
- 1,655
- 3
- 15
- 21
1
vote
2 answers
Store any hash in GDBM and can I search in it?
Reading about GDBM in this book they only give simple examples of the data structure that can stored. E.g.
$dbm{'key'} = "value";
Background
I would like to save many small text files in the database for local use only, and use nested hashes and…

Jasmine Lognnes
- 6,597
- 9
- 38
- 58
1
vote
1 answer
Dict-like object with no __getitem__, __setitem__
If you do
import gdbm
db = gdbm.open('foo', 'cs')
You get an object which is:
You can now set keys and values in the database via:
db['foo'] = 'bar'
print db['foo']
I wanted to use these from Twisted and make a…

Max
- 3,384
- 2
- 27
- 26
1
vote
1 answer
GDBM file import and export
I am migrating a system from the old server (Slackware) to the new one (Redhat). The system includes some .gdbm files. I find out that on my new server, when running
WEB_SERVICES = file.gdbm
tie( %webservices, 'GDBM_File', $WEB_SERVICES, O_RDONLY,…

Yiting Li
- 117
- 1
- 5
1
vote
1 answer
GDBM object passed via void pointer is lost/corrupted
I have a program that can use either GDBM or Kyoto Cabinet as a DBM library. I've written some functions to abstract away the difference between the two and I pass around void pointers in place of the database file (GDBM_FILE in the case of GDBM and…
user626998
1
vote
3 answers
Ideal string length for DBM database?
When using a DBM database (e.g. Berkeley or GDBM), is it better to store data using fewer long strings or more short strings? I can easily structure my data either way. I'm looking for 'better' in the performance sense, but I'm interested in other…
dhowland
1
vote
2 answers
GDBM sequential access: bug?
I implemented the following GBDM example:
#include
#include
#include
#include
#include
struct record
{
int a;
int b;
};
int main(int argc, char* argv[])
{
GDBM_FILE db;
…

bruno nery
- 2,022
- 2
- 20
- 31
0
votes
0 answers
MacPorts Error When Installing GDBM
When I attempt to run the command sudo port install gdbm, the output is as follows:
---> Fetching archive for gdbm
---> Attempting to fetch gdbm-1.10_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/gdbm
---> Fetching…

Spencer Connaughton
- 892
- 6
- 21