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/tcl_using.html | 65 +++++++++++++++++++------------- 1 file changed, 39 insertions(+), 26 deletions(-) (limited to 'docs/programmer_reference/tcl_using.html') diff --git a/docs/programmer_reference/tcl_using.html b/docs/programmer_reference/tcl_using.html index a668f7d9..4940975f 100644 --- a/docs/programmer_reference/tcl_using.html +++ b/docs/programmer_reference/tcl_using.html @@ -14,7 +14,7 @@ -

All commands in the Berkeley DB Tcl interface are in the following form:

+

+ All commands in the Berkeley DB Tcl interface are in the + following form: +

command_handle operation options
-

The command handle is berkdb or one of the additional -commands that may be created. The operation is what you want -to do to that handle, and the options apply to the operation. -Commands that get created on behalf of the application have their own sets -of operations. Generally, any calls in DB that result in new object -handles will translate into a new command handle in Tcl. Then, the user -can access the operations of the handle via the new Tcl command handle.

-

Newly created commands are named with an abbreviated form of their -objects, followed by a number. Some created commands are subcommands of -other created commands and will be the first command, followed by a -period (.), and then followed by the new subcommand. For example, -suppose that you have a database already existing called my_data.db. -The following example shows the commands created when you open the -database and when you open a cursor:

+

+ The command handle is berkdb or one of the additional + commands that may be created. The + operation is what you want to do to + that handle, and the options apply to the + operation. Commands that get created on behalf of the + application have their own sets of operations. Generally, any + calls in DB that result in new object handles will translate + into a new command handle in Tcl. Then, the user can access + the operations of the handle via the new Tcl command + handle. +

+

+ Newly created commands are named with an abbreviated form of + their objects, followed by a number. Some created commands are + subcommands of other created commands and will be the first + command, followed by a period (.), and then followed by the + new subcommand. For example, suppose that you have a database + already existing called my_data.db. The following example + shows the commands created when you open the database and when + you open a cursor: +

# First open the database and get a database command handle
 % berkdb open my_data.db
 db0
@@ -66,10 +75,16 @@ db0.c0
 #Get the first data from the cursor
 % db0.c0 get -first
 {{first_key first_data}}
-

All commands in the library support a special option -? that will -list the correct operations for a command or the correct options.

-

A list of commands and operations can be found in the - Tcl API documentation.

+

+ All commands in the library support a special option + -? that will list the + correct operations for a command or the correct + options. +

+

+ A list of commands and operations can be found in the Tcl API + documentation. +