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_put.html | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'docs/programmer_reference/am_put.html') diff --git a/docs/programmer_reference/am_put.html b/docs/programmer_reference/am_put.html index 1797eac0..9cd323c7 100644 --- a/docs/programmer_reference/am_put.html +++ b/docs/programmer_reference/am_put.html @@ -14,7 +14,7 @@

- The DB->put() method stores records into the database. In general, - DB->put() takes a key and stores the associated data into the - database. + The DB->put() method stores records into the database. In + general, DB->put() takes a key and stores the associated data + into the database.

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

@@ -53,39 +52,40 @@ DB_APPEND -
- Simply append the data to the end of the database, treating - the database much like a simple log. This flag is only - valid for the Heap, Queue and Recno access methods. - This flag is required if you are creating a new record in a Heap - database. +
+ Simply append the data to the end of the + database, treating the database much like a simple + log. This flag is only valid for the Heap, Queue and + Recno access methods. This flag is required if you are + creating a new record in a Heap database.
DB_NOOVERWRITE
-
- Only store the data item if the key does not already appear - in the database. +
+ Only store the data item if the key does not + already appear in the database.
-

- If the database has been configured to support duplicate records, - the DB->put() method will add the new data value at the end of the - duplicate set. If the database supports sorted duplicates, the new - data value is inserted at the correct sorted location. +

+ If the database has been configured to support duplicate + records, the DB->put() method will add the new data value at the + end of the duplicate set. If the database supports sorted + duplicates, the new data value is inserted at the correct + sorted location.

Note

- If you are using the Heap access method and you are creating a - new record in the database, then the key that you provide to - the DB->put() method should be empty. The DB->put() method will - return the record's ID (RID) in the key. The RID is - automatically created for you when Heap database records are - created. + If you are using the Heap access method and you are + creating a new record in the database, then the key that + you provide to the DB->put() method should be empty. The + DB->put() method will return the record's ID (RID) in the + key. The RID is automatically created for you when Heap + database records are created.

-- cgit v1.2.1