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
0
votes
0 answers
Why php is throwing error when using dba_open for db4?
I am trying to use db4 with php8.x
$cachefile = '/etc/cdata/cfile';
$dbh = dba_open($cachefile, "rl", "db4");
I am getting the error:
dba_open(/etc/cdata/cfile.lck): Failed to open stream: Permission denied
What am I doing wrong?
dba_open…
0
votes
0 answers
C# Bindings for gnu's gdbm v3
I'm trying to use gnu's gdbm3.dll from C# (as I could not find a native implementation or decoded examples for these key-value pair databases).
So far, I'm focussing on the following C code from gdbm.h:
/* The file information header. This is good…

wvd_vegt
- 326
- 2
- 5
0
votes
1 answer
Unable to retrive data from GDBM databas from differnt function in c
hi there i am trying to develop 3 tier server with embedded database.
my issue is that i am able to save data in gdbm database but when i try to retrieve data from other functions it always returns null value.
i have also point out the issue which…

Fawad Abbas
- 13
- 3
0
votes
1 answer
How to use gdbm in Perl
I'm new to gdbm and I would like to use it in Perl. I know that Perl ships by default with a module for that (GDBM_File). Now, when I try the simplest example possible, namely:
#!/usr/bin/perl
use strict;
use warnings;
use GDBM_File;
my $dbfile =…

eciii
- 277
- 3
- 8
0
votes
1 answer
How is Berkley gdbm typically used?
Gdbm is a simple key – value storage. I suspect that its use is based on various tricks. For example, from end-user perspective, I would like to have a record named user/project, that should have associated the following:
protocol, git:// or…

Itzie
- 65
- 5
0
votes
1 answer
Apache/PHP GDBM failing with Driver initialization failed for handler: gdbm
I have a system that has used PHP to build a GDBM file that is then referenced by Apache to perform basic authentication. It has been running since 1999 with many versions of apache and PHP until now when I am doing an upgrade to match corporate…

Paul Coldrey
- 1,389
- 11
- 20
0
votes
1 answer
How can I install gdbm module on heroku?
I'm running a celery worker on heroku and when starting up the worker I always get an error:
ImportError: No module named gdbm
I've confirmed this by running python on heroku and trying to import gdbm:
$ heroku run python
Running `python`…

pixelphantom
- 531
- 1
- 5
- 16
0
votes
0 answers
gdbm_open function doesn't completely execute
In one of my C++ code, I'm trying to open a file in write mode with gdbm_open function. I tried the following modes: GDBM_WRITER, GDBM_NEWDB and GDBM_WRCREAT.
The code hangs exactly at the point of calling the gdbm_open function and doesn't…

Murali Mahadevan
- 21
- 5
0
votes
1 answer
Error installing GDBM 1.10
First, i did ./configure
Then, i did make install and Terminal show this:
make[2]: Entering directory `/home/lucas/Área de Trabalho/gdbm-1.10/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install…

user3015328
- 1
- 2
0
votes
1 answer
Get the count of lines in a gdbm file
Is there any specific function or any way by which the number of lines in a GDBM file can be counted?Otherwise, I want to retrieve all the lines in a GDBM file at once(Iam able to retrieve the key value pairs using gdbm_fetch() but only one at a…

Nagaraju
- 1,853
- 2
- 27
- 46
0
votes
1 answer
gdbm programming with C
I am trying to learn gnu gdbm programming with C but can't proceed due to the paucity of the gdbm tutorial, books etc. so the only thing I have to follow is couple of simple gdbm c api codes available on w3. I wrote and compiled the following code…

Bishnu
- 177
- 1
- 10