| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Tcl API programming notes</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" /> |
| 10 | <link rel="up" href="tcl.html" title="Chapter 21. Berkeley DB Extensions: Tcl" /> |
| 11 | <link rel="prev" href="tcl_using.html" title="Using Berkeley DB with Tcl" /> |
| 12 | <link rel="next" href="tcl_error.html" title="Tcl error handling" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Tcl API programming notes</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="tcl_using.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 21. |
| 26 | Berkeley DB Extensions: Tcl |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="tcl_error.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="tcl_program"></a>Tcl API programming notes</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>The Berkeley DB Tcl API does not attempt to avoid evaluating input as Tcl |
| 42 | commands. For this reason, it may be dangerous to pass unreviewed user |
| 43 | input through the Berkeley DB Tcl API, as the input may subsequently be |
| 44 | evaluated as a Tcl command. Additionally, the Berkeley DB Tcl API |
| 45 | initialization routine resets process' effective user and group IDs to |
| 46 | the real user and group IDs, to minimize the effectiveness of a Tcl |
| 47 | injection attack.</p> |
| 48 | <p>The Tcl API closely parallels the Berkeley DB programmatic interfaces. If you |
| 49 | are already familiar with one of those interfaces, there will not be many |
| 50 | surprises in the Tcl API.</p> |
| 51 | <p>The Tcl API currently does not support multithreading although |
| 52 | it could be made to do so. The Tcl shell itself is |
| 53 | not multithreaded and the Berkeley DB extensions use global data unprotected |
| 54 | from multiple threads.</p> |
| 55 | <p>Several pieces of Berkeley DB functionality are not available in the Tcl API. |
| 56 | Any of the functions that require a user-provided function are not |
| 57 | supported via the Tcl API. For example, there is no equivalent to the |
| 58 | <a href="../api_reference/C/dbset_dup_compare.html" class="olink">DB->set_dup_compare()</a> or <a href="../api_reference/C/envset_errcall.html" class="olink">DB_ENV->set_errcall()</a> methods. |
| 59 | Additionally, the heap access method is not available.</p> |
| 60 | </div> |
| 61 | <div class="navfooter"> |
| 62 | <hr /> |
| 63 | <table width="100%" summary="Navigation footer"> |
| 64 | <tr> |
| 65 | <td width="40%" align="left"><a accesskey="p" href="tcl_using.html">Prev</a> </td> |
| 66 | <td width="20%" align="center"> |
| 67 | <a accesskey="u" href="tcl.html">Up</a> |
| 68 | </td> |
| 69 | <td width="40%" align="right"> <a accesskey="n" href="tcl_error.html">Next</a></td> |
| 70 | </tr> |
| 71 | <tr> |
| 72 | <td width="40%" align="left" valign="top">Using Berkeley DB with Tcl </td> |
| 73 | <td width="20%" align="center"> |
| 74 | <a accesskey="h" href="index.html">Home</a> |
| 75 | </td> |
| 76 | <td width="40%" align="right" valign="top"> Tcl error handling</td> |
| 77 | </tr> |
| 78 | </table> |
| 79 | </div> |
| 80 | </body> |
| 81 | </html> |