Status
HDB 1.0.1 was released on 26 May 2006. This release includes source and binary RPM packages.
Hosted By
SourceForge

 

 

HDB Quick start guide

Here is what you do to start experimenting with HDB without having to do a lot of tedious reading and configuration.

Installing

Download latest release. Install the latest release using RPM.
[hampa@hdb] rpm -ivh hdb-1.0.0-i386.rpm 
Start the database daemon
[hampa@hdb] service hdbd start 

Create a new database

Databases are created automatically by setting value to them. From the prompt create a database with the hdb-set command.
[hampa@hdb] hdb-set mydb/author/name=Arthur

Write a script that use HDB

Below is a simple bash script that uses database values
#!/bin/sh
value=`hdb-get mydb/author/name`
echo "name of author is $value"

Write a simple C program that demonstrates how to use the C interface to HDB

#include <stdio.h>
#include <hdb.h>

int main(int argc, char **argv){
   if(argc != 2){
      printf("Usage %s value\n", argv[0]);
      exit(1);
   }
   if(hdb_set_val("list/sublist", "key", argv[1])){
      printf("Unable to set list/sublist/key=%s\n", 
      argv[1]);
   }
   return 0;
}

Continue

The online documentation and man files comes with more programming examples.