diff --git a/manifest b/manifest index f8b94dcd95..d1006c2073 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Fix\sa\scomment\stypo\sin\sthe\sprevious\scheck-in.\s(CVS\s2691) -D 2005-09-13T00:02:17 +C Updates\sto\sthe\sdocumentation\son\sthe\sTCL\sbindings.\s(CVS\s2692) +D 2005-09-13T07:00:06 F Makefile.in 12784cdce5ffc8dfb707300c34e4f1eb3b8a14f1 F Makefile.linux-gcc 06be33b2a9ad4f005a5f42b22c4a19dab3cbb5c7 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -303,11 +303,11 @@ F www/speed.tcl 656ed5be8cc9d536353e1a96927b925634a62933 F www/sqlite.tcl b51fd15f0531a54874de785a9efba323eecd5975 F www/support.tcl 3955da0fd82be68cc5c83d347c05095e80967051 F www/table-ex1b2.gif a588d21a2d88bb2a2ef0431fcc5ed5aa48c0bbc5 -F www/tclsqlite.tcl 3df553505b6efcad08f91e9b975deb2e6c9bb955 +F www/tclsqlite.tcl ddcf912ea48695603c8ed7efb29f0812ef8d1b49 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 2ec2bd85741e36e410f05ff34de430ffbcf51eea -R b171a63011a54449dcf8edd901e67fad +P 49c952807dabd80bfeb46caf55856aaab988226c +R f4b62448ad898dcbe88a2a2c62a4eed4 U drh -Z 882a9bbd917dee19aef70ec8d9b5e775 +Z fae3e7ef8ecd16d6b2c3c92286508790 diff --git a/manifest.uuid b/manifest.uuid index 30f5ff1694..b047aed606 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -49c952807dabd80bfeb46caf55856aaab988226c \ No newline at end of file +94aa2d32459e1cee2df21fcc7df76c73dab903cd \ No newline at end of file diff --git a/www/tclsqlite.tcl b/www/tclsqlite.tcl index 5d67c87cc4..5eae90b027 100644 --- a/www/tclsqlite.tcl +++ b/www/tclsqlite.tcl @@ -1,7 +1,7 @@ # # Run this Tcl script to generate the tclsqlite.html file. # -set rcsid {$Id: tclsqlite.tcl,v 1.14 2005/08/02 17:38:19 drh Exp $} +set rcsid {$Id: tclsqlite.tcl,v 1.15 2005/09/13 07:00:06 drh Exp $} source common.tcl header {The Tcl interface to the SQLite library} proc METHOD {name text} { @@ -41,20 +41,27 @@ way widgets are created in Tk.
The name of the database is just the name of a disk file in which -the database is stored. +the database is stored. If the name of the database is an empty +string or the special name ":memory:" then a new database is created +in memory.
Once an SQLite database is open, it can be controlled using -methods of the dbcmd. There are currently 19 methods +methods of the dbcmd. There are currently 21 methods defined:
+The sqlite3 also accepts an optional third argument called +the "mode". This argument is a legacy from SQLite version 2 and is +currently ignored.
+
-As its name suggests, the "close" method to an SQLite database just -closes the database. This has the side-effect of deleting the -dbcmd Tcl command. Here is an example of opening and then -immediately closing a database: -
- --sqlite3 db1 ./testdb- -
-db1 close -
-If you delete the dbcmd directly, that has the same effect -as invoking the "close" method. So the following code is equivalent -to the previous:
- --sqlite3 db1 ./testdb-} - ############################################################################## METHOD eval {
-rename db1 {} -
@@ -231,6 +212,32 @@ since it avoids making a copy of the content of $bigblob. } +############################################################################## +METHOD close { + +
+As its name suggests, the "close" method to an SQLite database just +closes the database. This has the side-effect of deleting the +dbcmd Tcl command. Here is an example of opening and then +immediately closing a database: +
+ ++sqlite3 db1 ./testdb+ +
+db1 close +
+If you delete the dbcmd directly, that has the same effect +as invoking the "close" method. So the following code is equivalent +to the previous:
+ ++sqlite3 db1 ./testdb+} + ############################################################################## METHOD transaction { @@ -269,6 +276,38 @@ The transaction-type can be one of deferred, } +############################################################################## +METHOD cache { + +
+rename db1 {} +
+The "eval" method described above keeps a cache of +prepared statements +for recently evaluated SQL commands. +The "cache" method is used to control this cache. +The first form of this command is:
+ ++dbcmd cache size N ++ +
This sets the maximum number of statements that can be cached. +The upper limit is 100. The default is 10. If you set the cache size +to 0, no caching is done.
+ +The second form of the command is this:
+ + ++dbcmd cache flush ++ +
The cache-flush method +finalizes +all prepared statements currently +in the cache.
+ +} + ############################################################################## METHOD complete { @@ -279,9 +318,9 @@ there is more to be entered.The "complete" method is useful when building interactive applications in order to know when the user has finished entering a line of SQL code. -This is really just an interface to the sqlite3_complete() C -function. Refer to the C/C++ interface -specification for additional information.
+This is really just an interface to the +sqlite3_complete() C +function. } ############################################################################## @@ -426,7 +465,8 @@ representation for NULL values is an empty string. ############################################################################## METHOD onecolumn { -The "onecolumn" method works like "eval" in that it evaluates the +
The "onecolumn" method works like +"eval" in that it evaluates the SQL query statement given as its argument. The difference is that "onecolumn" returns a single element which is the first column of the first row of the query result.
@@ -455,7 +495,8 @@ current database connection was first opened. ############################################################################## METHOD authorizer { -The "authorizer" method provides access to the sqlite3_set_authorizer +
The "authorizer" method provides access to the +sqlite3_set_authorizer C/C++ interface. The argument to authorizer is the name of a procedure that is called when SQL statements are being compiled in order to authorize certain operations. The callback procedure takes 5 arguments which describe