]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Documented integer values used by PRAGMAs.
authorjplyon <jplyon@noemail.net>
Sun, 15 Jun 2003 10:29:24 +0000 (10:29 +0000)
committerjplyon <jplyon@noemail.net>
Sun, 15 Jun 2003 10:29:24 +0000 (10:29 +0000)
Fixed missing end tags in generated anchors. (CVS 1022)

FossilOrigin-Name: 6c24dfbae56a16dd736de5297c1796818773df80

manifest
manifest.uuid
www/lang.tcl

index c8a211782e54c534ac82d81b10ada156b90243e5..3b042fd2d507fb812264d81cfb81699ecbc90b3f 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C *\sAdded\s-version-info\sto\sshared\slibraries\n*\sRemove\sconfig.h\sand\slibtool\sin\sthe\sdistclean\starget\s(CVS\s1021)
-D 2003-06-14T19:29:09
+C Documented\sinteger\svalues\sused\sby\sPRAGMAs.\nFixed\smissing\send\stags\sin\sgenerated\sanchors.\s(CVS\s1022)
+D 2003-06-15T10:29:25
 F Makefile.in 9ad23ed4ca97f9670c4496432e3fbd4b3760ebde
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -155,7 +155,7 @@ F www/faq.tcl 88d3b95d9cd8e374772daa3a646c4d107e7f3e9b
 F www/fileformat.tcl d9b586416c0d099b82e02e469d532c9372f98f3f
 F www/formatchng.tcl cbaf0f410096c71f86a7537cf9249fa04b9a659c
 F www/index.tcl a34315cada875af0b098b4c45981da8ab33fe7b6
-F www/lang.tcl f206cb1b637337f3783f05716edb577cf327377a
+F www/lang.tcl 860e881dd62074ee86f1fa1f1a4fe4ab4f76ce78
 F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c
 F www/nulls.tcl 29497dac2bc5b437aa7e2e94577dad4d8933ed26
 F www/omitted.tcl 118062f40a203fcb88b8d68ef1d7c0073ac191ec
@@ -165,7 +165,7 @@ F www/speed.tcl 296cc5632d069b56d3ef5409ca0df90f486c10fb
 F www/sqlite.tcl 4bd1729e320f5fa9125f0022b281fbe839192125
 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
 F www/vdbe.tcl 14fdcc7fe8a60a6ba8584903636db8dc37eef26a
-P 9ec40935b9435ddc3749cab517387477e4045f6b
-R 12c201d65566c93a958812cc7bcd5528
-U a.rottmann
-Z d76a73e3bc96042e55286e1e7aa5b780
+P e13e8b05b4d146aa4ca9ed06e414e0c6a4fba4e4
+R 025a97aa1a8710d9abd04f450fb59b7a
+U jplyon
+Z f0f06ece626e6fed7f80c90c5644e695
index ff5f8e4e093ad53345fe28e592e9a0c28f763f9c..06d976ceae6b2592c6d88b7dc42f26b9cabca03b 100644 (file)
@@ -1 +1 @@
-e13e8b05b4d146aa4ca9ed06e414e0c6a4fba4e4
\ No newline at end of file
+6c24dfbae56a16dd736de5297c1796818773df80
\ No newline at end of file
index 29ffabc035907b6412edf031a77bd5bec4061146..f18c7241afaca9c9ec9879d14b10443e5dc1c215 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Run this Tcl script to generate the sqlite.html file.
 #
-set rcsid {$Id: lang.tcl,v 1.61 2003/06/08 08:36:34 jplyon Exp $}
+set rcsid {$Id: lang.tcl,v 1.62 2003/06/15 10:29:25 jplyon Exp $}
 
 puts {<html>
 <head>
@@ -113,7 +113,7 @@ proc Keyword {name} {
 proc Section {name {label {}}} {
   puts "\n<hr />"
   if {$label!=""} {
-    puts "<a name=\"$label\">"
+    puts "<a name=\"$label\"></a>"
   }
   puts "<h1>$name</h1>\n"
 }
@@ -1228,6 +1228,14 @@ The pragma command is experimental and specific pragma statements may be
 removed or added in future releases of SQLite.  Use this command
 with caution.</p>
 
+<p>The pragmas that take an integer <b><i>value</i></b> also accept 
+symbolic names.  The strings "<b>on</b>", "<b>true</b>", and "<b>yes</b>" 
+are equivalent to <b>1</b>.  The strings "<b>off</b>", "<b>false</b>", 
+and "<b>no</b>" are equivalent to <b>0</b>.  These strings are case-
+insensitive, and do not require quotes.  An unrecognized string will be 
+treated as <b>1</b>, and will not generate an error.  When the <i>value</i> 
+is returned it is as an integer.</p>
+
 <p>The current implementation supports the following pragmas:</p>
 
 <ul>
@@ -1246,8 +1254,8 @@ with caution.</p>
     the <a href="#pragma_default_cache_size"><b>default_cache_size</b></a> 
     pragma to check the cache size permanently.</p></li>
 
-<li><p><b>PRAGMA count_changes = ON;
-       <br>PRAGMA count_changes = OFF;</b></p>
+<li><p><b>PRAGMA count_changes = ON; </b>(1)<b>
+       <br>PRAGMA count_changes = OFF;</b> (0)</p>
     <p>When on, the COUNT_CHANGES pragma causes the callback function to
     be invoked once for each DELETE, INSERT, or UPDATE operation.  The
     argument is the number of rows that were changed.</p>
@@ -1265,7 +1273,7 @@ with caution.</p>
 <li><p><b>PRAGMA default_cache_size;
        <br>PRAGMA default_cache_size = </b><i>Number-of-pages</i><b>;</b></p>
     <p>Query or change the maximum number of database disk pages that SQLite
-    will hold in memory at once.  Each page uses about 1.5K of memory.
+    will hold in memory at once.  Each page uses 1K on disk and about 1.5K in memory.
     This pragma works like the <a href="#pragma_cache_size"><b>cache_size</b></a> 
     pragma with the additional
     feature that it changes the cache size persistently.  With this pragma,
@@ -1274,24 +1282,25 @@ with caution.</p>
 
 <a name="pragma_default_synchronous"></a>
 <li><p><b>PRAGMA default_synchronous;
-       <br>PRAGMA default_synchronous = FULL;
-       <br>PRAGMA default_synchronous = NORMAL;
-       <br>PRAGMA default_synchronous = OFF;</b></p>
+       <br>PRAGMA default_synchronous = FULL; </b>(2)<b>
+       <br>PRAGMA default_synchronous = NORMAL; </b>(1)<b>
+       <br>PRAGMA default_synchronous = OFF; </b>(0)</p>
     <p>Query or change the setting of the "synchronous" flag in
-    the database.  When synchronous is FULL, the SQLite database engine will
+    the database.  The first (query) form will return the setting as an 
+    integer.  When synchronous is FULL (2), the SQLite database engine will
     pause at critical moments to make sure that data has actually been 
     written to the disk surface before continuing.  This ensures that if
     the operating system crashes or if there is a power failure, the database
     will be uncorrupted after rebooting.  FULL synchronous is very 
     safe, but it is also slow.  
-    When synchronous is NORMAL (the default), the SQLite database
+    When synchronous is NORMAL (1, the default), the SQLite database
     engine will still pause at the most critical moments, but less often
     than in FULL mode.  There is a very small (though non-zero) chance that
     a power failure at just the wrong time could corrupt the database in
     NORMAL mode.  But in practice, you are more likely to suffer
     a catastrophic disk failure or some other unrecoverable hardware
     fault.  So NORMAL is the default mode.
-    With synchronous OFF, SQLite continues without pausing
+    With synchronous OFF (0), SQLite continues without pausing
     as soon as it has handed data off to the operating system.
     If the application running SQLite crashes, the data will be safe, but
     the database might become corrupted if the operating system
@@ -1306,13 +1315,13 @@ with caution.</p>
 
 <a name="pragma_default_temp_store"></a>
 <li><p><b>PRAGMA default_temp_store;
-       <br>PRAGMA default_temp_store = DEFAULT;
-       <br>PRAGMA default_temp_store = MEMORY;
-       <br>PRAGMA default_temp_store = FILE;</b></p>
+       <br>PRAGMA default_temp_store = DEFAULT; </b>(0)<b>
+       <br>PRAGMA default_temp_store = MEMORY; </b>(2)<b>
+       <br>PRAGMA default_temp_store = FILE;</b> (1)</p>
     <p>Query or change the setting of the "temp_store" flag stored in
-    the database.  When temp_store is DEFAULT, the compile-time default 
-    is used for the temporary database.  When temp_store is MEMORY, an 
-    in-memory database is used.  When temp_store is FILE, a temporary 
+    the database.  When temp_store is DEFAULT (0), the compile-time default 
+    is used for the temporary database.  When temp_store is MEMORY (2), an 
+    in-memory database is used.  When temp_store is FILE (1), a temporary 
     database file on disk will be used.  Note that it is possible for 
     the library compile-time options to override this setting.  Once 
     the temporary database is in use, its location cannot be changed.</p>
@@ -1323,8 +1332,8 @@ with caution.</p>
     thing but only applies the setting to the current session.</p></li>
 
 <a name="pragma_empty_result_callbacks"></a>
-<li><p><b>PRAGMA empty_result_callbacks = ON;
-       <br>PRAGMA empty_result_callbacks = OFF;</b></p>
+<li><p><b>PRAGMA empty_result_callbacks = ON; </b>(1)<b>
+       <br>PRAGMA empty_result_callbacks = OFF;</b> (0)</p>
     <p>When on, the EMPTY_RESULT_CALLBACKS pragma causes the callback
     function to be invoked once for each query that has an empty result
     set.  The third "<b>argv</b>" parameter to the callback is set to NULL
@@ -1333,8 +1342,8 @@ with caution.</p>
     determine the number and names of the columns that would have been in
     the result set had the set not been empty.</p></li>
 
-<li><p><b>PRAGMA full_column_names = ON;
-       <br>PRAGMA full_column_names = OFF;</b></p>
+<li><p><b>PRAGMA full_column_names = ON; </b>(1)<b>
+       <br>PRAGMA full_column_names = OFF;</b> (0)</p>
     <p>The column names reported in an SQLite callback are normally just
     the name of the column itself, except for joins when "TABLE.COLUMN"
     is used.  But when full_column_names is turned on, column names are
@@ -1359,14 +1368,16 @@ with caution.</p>
     a description of all problems.  If everything is in order, "ok" is
     returned.</p></li>
 
-<li><p><b>PRAGMA parser_trace = ON;<br>PRAGMA parser_trace = OFF;</b></p>
+<li><p><b>PRAGMA parser_trace = ON; </b>(1)<b>
+    <br>PRAGMA parser_trace = OFF;</b> (0)</p>
     <p>Turn tracing of the SQL parser inside of the
     SQLite library on and off.  This is used for debugging.
     This only works if the library is compiled without the NDEBUG macro.
     </p></li>
 
 <a name="pragma_show_datatypes"></a>
-<li><p><b>PRAGMA show_datatypes = ON;<br>PRAGMA show_datatypes = OFF;</b></p>
+<li><p><b>PRAGMA show_datatypes = ON; </b>(1)<b>
+    <br>PRAGMA show_datatypes = OFF;</b> (0)</p>
     <p>When turned on, the SHOW_DATATYPES pragma causes extra entries containing
     the names of <a href="datatypes.html">datatypes</a> of columns to be
     appended to the 4th ("columnNames") argument to <b>sqlite_exec()</b>
@@ -1399,9 +1410,9 @@ with caution.</p>
 
 <a name="pragma_synchronous"></a>
 <li><p><b>PRAGMA synchronous;
-       <br>PRAGMA synchronous = FULL;
-       <br>PRAGMA synchronous = NORMAL;
-       <br>PRAGMA synchronous = OFF;</b></p>
+       <br>PRAGMA synchronous = FULL; </b>(2)<b>
+       <br>PRAGMA synchronous = NORMAL; </b>(1)<b>
+       <br>PRAGMA synchronous = OFF;</b> (0)</p>
     <p>Query or change the setting of the "synchronous" flag affecting
     the database for the duration of the current database connection.
     The synchronous flag reverts to its default value when the database
@@ -1418,9 +1429,9 @@ with caution.</p>
 
 <a name="pragma_temp_store"></a>
 <li><p><b>PRAGMA temp_store;
-       <br>PRAGMA temp_store = DEFAULT;
-       <br>PRAGMA temp_store = MEMORY;
-       <br>PRAGMA temp_store = FILE;</b></p>
+       <br>PRAGMA temp_store = DEFAULT; </b>(0)<b>
+       <br>PRAGMA temp_store = MEMORY; </b>(2)<b>
+       <br>PRAGMA temp_store = FILE;</b> (1)</p>
     <p>Query or change the setting of the "temp_store" flag affecting
     the database for the duration of the current database connection.
     The temp_store flag reverts to its default value when the database
@@ -1431,7 +1442,8 @@ with caution.</p>
     </li>
 
 <a name="pragma_vdbe_trace"></a>
-<li><p><b>PRAGMA vdbe_trace = ON;<br>PRAGMA vdbe_trace = OFF;</b></p>
+<li><p><b>PRAGMA vdbe_trace = ON; </b>(1)<b>
+    <br>PRAGMA vdbe_trace = OFF;</b> (0)</p>
     <p>Turn tracing of the virtual database engine inside of the
     SQLite library on and off.  This is used for debugging.  See the 
     <a href="vdbe.html#trace">VDBE documentation</a> for more