1<!--$Id: db_cursor.so,v 11.13 2002/08/18 21:17:25 bostic Exp $--> 2<!--$Id: m4.tcl,v 11.28 2004/12/16 19:13:05 bostic Exp $--> 3<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 4<!--See the file LICENSE for redistribution information.--> 5<html> 6<head> 7<title>Berkeley DB: db cursor</title> 8<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 9<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 10</head> 11<body bgcolor=white> 12<table width="100%"><tr valign=top> 13<td> 14<b><i>db</i> <b>cursor</b></b> 15</td> 16<td align=right> 17<a href="../api_tcl/api_tcl.html"><img src="../images/api.gif" alt="API"></a> 18<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td> 19</tr></table> 20<hr size=1 noshade> 21<tt> 22<b><pre>db cursor 23 [-txn txnid] 24</pre></b> 25<b>Description(db cursor)</b> 26<p>The <i>db</i> <b>cursor</b> command creates a database cursor. The returned 27cursor handle is bound to a Tcl command of the form <b>dbN.cX</b>, 28where X is an integer starting at 0 (for example, db0.c0 and db0.c1). 29It is through this Tcl command that the script accesses the cursor 30methods.</p> 31<p>The options are as follows:</p> 32<br> 33<b>-txn txnid</b><ul compact><li>If the operation is part of an application-specified transaction, the 34<b>txnid</b> parameter is a transaction handle returned from 35<i>env</i> <b>txn</b>. If no transaction handle is specified, but the 36operation occurs in a transactional 37database, 38the operation will be implicitly transaction protected.</ul> 39<br> 40<p>In the case of error, a Tcl error is thrown.</p> 41</tt> 42<table width="100%"><tr><td><br></td><td align=right> 43<a href="../api_tcl/api_tcl.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a> 44</td></tr></table> 45<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 46</body> 47</html> 48