function

dbhash_key . dbhash . sncode

VERSIONlatest Return the key from the database.

DBHASH_KEY(1e)

NAME

dbhash_key - Return the key from the database.

SYNOPSIS

dbhash_key (db:pointer);

DESCRIPTION

This function can be use as a function or as a callback.

The function will return all keys from the database.

As a function it will return an array of keys.

As a callback it will return the keys for each loop.

There is NO order in a key/data database.

PARAMETERS

db
Pointer to database

RETURN

keys

MODULES

To use this module, you must specify the following in /usr/local/website/site.conf:

Module hash {
    Library : "/usr/local/lib/libsndbhash.so"
    Init : "sndbhash_init"
}

EXAMPLES

for j dbhash_key(db:hash) do
        n++;
endfor
sort(sort:1,dbhash_key(db:hash));

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>