Go to main content

dbhash_key

Return the key from the database.

DBHASH_KEY

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));

SEE ALSO

{{ include("includes/dbhash.sn") }}

AUTHOR

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

MODIFICATIONS

1.0 2015-02-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.