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/transapp_cursor.html | 36 ++++++++++++++------------ 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'docs/programmer_reference/transapp_cursor.html') diff --git a/docs/programmer_reference/transapp_cursor.html b/docs/programmer_reference/transapp_cursor.html index b202d9e0..2c36d2cf 100644 --- a/docs/programmer_reference/transapp_cursor.html +++ b/docs/programmer_reference/transapp_cursor.html @@ -14,7 +14,7 @@ -

Berkeley DB cursors may be used inside a transaction, exactly as any other -DB method. The enclosing transaction ID must be specified when -the cursor is created, but it does not then need to be further specified -on operations performed using the cursor. One important point to -remember is that a cursor must be closed before the enclosing -transaction is committed or aborted.

-

The following code fragment uses a cursor to store a new key in the cats -database with four associated data items. The key is a name. The data -items are a company name and a list of the breeds of cat owned. Each -of the data entries is stored as a duplicate data item. In this -example, transactions are necessary to ensure that either all or none -of the data items appear in case of system or application failure.

+

+ Berkeley DB cursors may be used inside a transaction, + exactly as any other DB method. The enclosing transaction ID + must be specified when the cursor is created, but it does not + then need to be further specified on operations performed + using the cursor. One important point to remember is that a + cursor must be closed before + the enclosing transaction is committed or aborted. +

+

+ The following code fragment uses a cursor to store a new key + in the cats database with four associated data items. The key + is a name. The data items are a company name and a list of the + breeds of cat owned. Each of the data entries is stored as a + duplicate data item. In this example, transactions are + necessary to ensure that either all or none of the data items + appear in case of system or application failure. +

int
 main(int argc, char *argv)
 {
-- 
cgit v1.2.1