diff --git a/reference/dba/functions/dba-fetch.xml b/reference/dba/functions/dba-fetch.xml index 819c4a4349..d45ad15d7b 100644 --- a/reference/dba/functions/dba-fetch.xml +++ b/reference/dba/functions/dba-fetch.xml @@ -1,5 +1,5 @@ - + @@ -11,6 +11,7 @@ stringdba_fetch stringkey + intskip resourcehandle @@ -21,6 +22,11 @@ Key is the key the data is specified by. + + Skip is the number of key-value pairs to + ignore when using cdb databases. This value is ignored for all other + databases which do not support multiple keys with the same name. + Handle is a database handle returned by dba_open. @@ -35,6 +41,14 @@ dba_delete, dba_insert, and dba_replace. + + + + The skip parameter is available since PHP 4.3 to support cdb's + capability of multiple keys having the same name. + + + diff --git a/reference/dba/functions/dba-handlers.xml b/reference/dba/functions/dba-handlers.xml new file mode 100644 index 0000000000..c1add54468 --- /dev/null +++ b/reference/dba/functions/dba-handlers.xml @@ -0,0 +1,44 @@ + + + + + + dba_handlers + List handlers available + + + Description + + arraydba_handlers + + + dba_handlers returns an array with all handlers + suppoerted by this extension. + + + When the internal cdb library is used you will see 'cdb' and 'cdb_make'. + + + + + + diff --git a/reference/dba/functions/dba-list.xml b/reference/dba/functions/dba-list.xml new file mode 100644 index 0000000000..b7fe947651 --- /dev/null +++ b/reference/dba/functions/dba-list.xml @@ -0,0 +1,41 @@ + + + + + + dba_list + List all open database files + + + Description + + arraydba_list + + + dba_list returns an associative array with all + open databse files in the form resourceid=>filename. + + + + + + diff --git a/reference/dba/reference.xml b/reference/dba/reference.xml index 6dfc026abc..fd2d78ef6a 100644 --- a/reference/dba/reference.xml +++ b/reference/dba/reference.xml @@ -1,5 +1,5 @@ - + Database (dbm-style) abstraction layer functions dba @@ -91,7 +91,8 @@ Cdb is "a fast, reliable, lightweight package for creating and reading constant databases." It is from the author of qmail and can be found here. Since it is - constant, we support only reading operations. + constant, we support only reading operations. And since PHP4.3 + we support writing (not updating) through the internal cdb library. @@ -104,7 +105,7 @@ dba_popen functions, one of the handler names must be supplied as an argument. The actually available list of handlers is displayed by invoking - phpinfo. + phpinfo or dba_handlers. @@ -172,6 +173,11 @@ To enable support for cdb add . + + Since PHP 4.3 you can omit DIR to use the internal cdb library + that adds the cdb_make handler which allows creation of cdb files + and allows to access cdb files on the network using php's streams. +