From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- docs/programmer_reference/am_get.html | 52 ++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 19 deletions(-) (limited to 'docs/programmer_reference/am_get.html') diff --git a/docs/programmer_reference/am_get.html b/docs/programmer_reference/am_get.html index 8aba222b..491dec69 100644 --- a/docs/programmer_reference/am_get.html +++ b/docs/programmer_reference/am_get.html @@ -14,7 +14,7 @@ -

The DB->get() method retrieves records from the database. In general, -DB->get() takes a key and returns the associated data from the -database.

-

There are a few flags that you can set to customize retrieval:

+

+ The DB->get() method retrieves records from the database. In + general, DB->get() takes a key and returns the associated data + from the database. +

+

+ There are a few flags that you can set to customize + retrieval: +

@@ -49,29 +52,40 @@ database.

DB_GET_BOTH
-
Search for a matching key and data item, that is, only return success -if both the key and the data items match those stored in the database.
+
+ Search for a matching key and data item, that + is, only return success if both the key and the data + items match those stored in the database. +
DB_RMW
-
Read-modify-write: acquire write locks instead of read locks during -retrieval. This can enhance performance in threaded applications by -reducing the chance of deadlock.
+
+ Read-modify-write: acquire write locks instead + of read locks during retrieval. This can enhance + performance in threaded applications by reducing the + chance of deadlock. +
DB_SET_RECNO
-
If the underlying database is a Btree, and was configured so that it -is possible to search it by logical record number, retrieve a specific -record.
+
+ If the underlying database is a Btree, and was + configured so that it is possible to search it by + logical record number, retrieve a specific + record. +
-

If the database has been configured to support duplicate records, -DB->get() will always return the first data item in the duplicate -set.

+

+ If the database has been configured to support duplicate + records, DB->get() will always return the first data item in the + duplicate set. +