Skip to content

Commit 3aacc84

Browse files
author
jplyon
committed
- Added entries for PRAGMAs database_list, temp_store and default_temp_store.
- Fixed missing end tags. (CVS 960) FossilOrigin-Name: 55ae7b35ee2dcebc99256d4b1e22a87ea75e3d03
1 parent b2ca13e commit 3aacc84

File tree

3 files changed

+74
-29
lines changed

3 files changed

+74
-29
lines changed

manifest

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
C Cleaned\sup\skeywords\ssection.\s(CVS\s959)
2-
D 2003-05-07T03:59:10
1+
C -\sAdded\sentries\sfor\sPRAGMAs\sdatabase_list,\stemp_store\sand\sdefault_temp_store.\n-\sFixed\smissing\send\stags.\s(CVS\s960)
2+
D 2003-05-07T04:04:17
33
F Makefile.in 004acec253ecdde985c8ecd5b7c9accdb210378f
44
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
55
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -155,7 +155,7 @@ F www/faq.tcl 12d1788d4abcfe1ff3054e17605df2418883bf6f
155155
F www/fileformat.tcl d9b586416c0d099b82e02e469d532c9372f98f3f
156156
F www/formatchng.tcl cbaf0f410096c71f86a7537cf9249fa04b9a659c
157157
F www/index.tcl b155eba45136d19e7aa6ba979d4093180c335cf7
158-
F www/lang.tcl 46b42bd1b22c6e18c17ebfe3893da57790761b79
158+
F www/lang.tcl bbd268bb1251c94062896d5bdb4beca19bc0ea1f
159159
F www/mingw.tcl d96b451568c5d28545fefe0c80bee3431c73f69c
160160
F www/nulls.tcl 29497dac2bc5b437aa7e2e94577dad4d8933ed26
161161
F www/omitted.tcl 118062f40a203fcb88b8d68ef1d7c0073ac191ec
@@ -165,7 +165,7 @@ F www/speed.tcl cb4c10a722614aea76d2c51f32ee43400d5951be
165165
F www/sqlite.tcl ffde644361e1d8e2a44a235ff23ad3b43d640df2
166166
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
167167
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
168-
P 6d4b6597e560578253960d9876dc8c8657f41fef
169-
R 7baf27040092074ad3a30cf620346b84
168+
P bb609f96e00fd62d932601c4aa37bc17baa82257
169+
R dda10c19cfdf488f535f7dc535754b7d
170170
U jplyon
171-
Z cc6c263b53146ffd7c6d10d64ce2f2b8
171+
Z c9d5bf00e4e436e976c07b135d71d6fc

manifest.uuid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bb609f96e00fd62d932601c4aa37bc17baa82257
1+
55ae7b35ee2dcebc99256d4b1e22a87ea75e3d03

www/lang.tcl

Lines changed: 67 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Run this Tcl script to generate the sqlite.html file.
33
#
4-
set rcsid {$Id: lang.tcl,v 1.54 2003/05/07 03:59:10 jplyon Exp $}
4+
set rcsid {$Id: lang.tcl,v 1.55 2003/05/07 04:04:17 jplyon Exp $}
55

66
puts {<html>
77
<head>
@@ -1188,6 +1188,7 @@ with caution.</p>
11881188
<p>The current implementation supports the following pragmas:</p>
11891189

11901190
<ul>
1191+
<a name="pragma_cache_size"></a>
11911192
<li><p><b>PRAGMA cache_size;
11921193
<br>PRAGMA cache_size = </b><i>Number-of-pages</i><b>;</b></p>
11931194
<p>Query or change the maximum number of database disk pages that SQLite
@@ -1199,8 +1200,8 @@ with caution.</p>
11991200
<p>When you change the cache size using the cache_size pragma, the
12001201
change only endures for the current session. The cache size reverts
12011202
to the default value when the database is closed and reopened. Use
1202-
the <b>default_cache_size</b> pragma to check the cache size permanently
1203-
</p></li>
1203+
the <a href="#pragma_default_cache_size"><b>default_cache_size</b></a>
1204+
pragma to check the cache size permanently.</p></li>
12041205

12051206
<li><p><b>PRAGMA count_changes = ON;
12061207
<br>PRAGMA count_changes = OFF;</b></p>
@@ -1210,15 +1211,25 @@ with caution.</p>
12101211
<p>This pragma may be removed from future versions of SQLite.
12111212
Consider using the <b>sqlite_changes()</b> API function instead.</p></li>
12121213

1214+
<li><p><b>PRAGMA database_list;</b></p>
1215+
<p>For each open database, invoke the callback function once with
1216+
information about that database. Arguments include the index and
1217+
the name the datbase was attached with. The first row will be for
1218+
the main database. The second row will be for the database used to
1219+
store temporary tables.</p></li>
1220+
1221+
<a name="pragma_default_cache_size"></a>
12131222
<li><p><b>PRAGMA default_cache_size;
12141223
<br>PRAGMA default_cache_size = </b><i>Number-of-pages</i><b>;</b></p>
12151224
<p>Query or change the maximum number of database disk pages that SQLite
12161225
will hold in memory at once. Each page uses about 1.5K of memory.
1217-
This pragma works like the <b>cache_size</b> pragma with the addition
1226+
This pragma works like the <a href="#pragma_cache_size"><b>cache_size</b></a>
1227+
pragma with the additional
12181228
feature that it changes the cache size persistently. With this pragma,
12191229
you can set the cache size once and that setting is retained and reused
12201230
everytime you reopen the database.</p></li>
12211231

1232+
<a name="pragma_default_synchronous"></a>
12221233
<li><p><b>PRAGMA default_synchronous;
12231234
<br>PRAGMA default_synchronous = FULL;
12241235
<br>PRAGMA default_synchronous = NORMAL;
@@ -1247,10 +1258,28 @@ with caution.</p>
12471258
</p>
12481259
<p>This pragma changes the synchronous mode persistently. Once changed,
12491260
the mode stays as set even if the database is closed and reopened. The
1250-
<b>synchronous</b> pragma does the same thing but only applies the setting
1251-
to the current session.</p>
1261+
<a href="#pragma_synchronous"><b>synchronous</b></a> pragma does the same
1262+
thing but only applies the setting to the current session.</p></li>
1263+
1264+
<a name="pragma_default_temp_store"></a>
1265+
<li><p><b>PRAGMA default_temp_store;
1266+
<br>PRAGMA default_temp_store = DEFAULT;
1267+
<br>PRAGMA default_temp_store = MEMORY;
1268+
<br>PRAGMA default_temp_store = FILE;</b></p>
1269+
<p>Query or change the setting of the "temp_store" flag stored in
1270+
the database. When temp_store is DEFAULT, the compile-time default
1271+
is used for the temporary database. When temp_store is MEMORY, an
1272+
in-memory database is used. When temp_store is FILE, a temporary
1273+
database file on disk will be used. Note that it is possible for
1274+
the library compile-time options to override this setting. Once
1275+
the temporary database is in use, its location cannot be changed.</p>
1276+
1277+
<p>This pragma changes the temp_store mode persistently. Once changed,
1278+
the mode stays as set even if the database is closed and reopened. The
1279+
<a href="#pragma_temp_store"><b>temp_store</b></a> pragma does the same
1280+
thing but only applies the setting to the current session.</p></li>
12521281

1253-
<a name="pragma_empty_result_callbacks">
1282+
<a name="pragma_empty_result_callbacks"></a>
12541283
<li><p><b>PRAGMA empty_result_callbacks = ON;
12551284
<br>PRAGMA empty_result_callbacks = OFF;</b></p>
12561285
<p>When on, the EMPTY_RESULT_CALLBACKS pragma causes the callback
@@ -1259,7 +1288,7 @@ with caution.</p>
12591288
because there is no data to report. But the second "<b>argc</b>" and
12601289
fourth "<b>columnNames</b>" parameters are valid and can be used to
12611290
determine the number and names of the columns that would have been in
1262-
the result set had the set not been empty.</p>
1291+
the result set had the set not been empty.</p></li>
12631292

12641293
<li><p><b>PRAGMA full_column_names = ON;
12651294
<br>PRAGMA full_column_names = OFF;</b></p>
@@ -1272,28 +1301,28 @@ with caution.</p>
12721301
<p>For each column that the named index references, invoke the
12731302
callback function
12741303
once with information about that column, including the column name,
1275-
and the column number.</p>
1304+
and the column number.</p></li>
12761305

12771306
<li><p><b>PRAGMA index_list(</b><i>table-name</i><b>);</b></p>
12781307
<p>For each index on the named table, invoke the callback function
12791308
once with information about that index. Arguments include the
12801309
index name and a flag to indicate whether or not the index must be
1281-
unique.</p>
1282-
1283-
<li><p><b>PRAGMA parser_trace = ON;<br>PRAGMA parser_trace = OFF;</b></p>
1284-
<p>Turn tracing of the SQL parser inside of the
1285-
SQLite library on and off. This is used for debugging.
1286-
This only works if the library is compiled without the NDEBUG macro.
1287-
</p></li>
1310+
unique.</p></li>
12881311

12891312
<li><p><b>PRAGMA integrity_check;</b></p>
12901313
<p>The command does an integrity check of the entire database. It
12911314
looks for out-of-order records, missing pages, and malformed records.
12921315
If any problems are found, then a single string is returned which is
12931316
a description of all problems. If everything is in order, "ok" is
1294-
returned.</p>
1317+
returned.</p></li>
12951318

1296-
<a name="pragma_show_datatypes">
1319+
<li><p><b>PRAGMA parser_trace = ON;<br>PRAGMA parser_trace = OFF;</b></p>
1320+
<p>Turn tracing of the SQL parser inside of the
1321+
SQLite library on and off. This is used for debugging.
1322+
This only works if the library is compiled without the NDEBUG macro.
1323+
</p></li>
1324+
1325+
<a name="pragma_show_datatypes"></a>
12971326
<li><p><b>PRAGMA show_datatypes = ON;<br>PRAGMA show_datatypes = OFF;</b></p>
12981327
<p>When turned on, the SHOW_DATATYPES pragma causes extra entries containing
12991328
the names of <a href="datatypes.html">datatypes</a> of columns to be
@@ -1325,22 +1354,38 @@ with caution.</p>
13251354
azCol[6] = 0;
13261355
</td></table></blockquote></li>
13271356

1357+
<a name="pragma_synchronous"></a>
13281358
<li><p><b>PRAGMA synchronous;
13291359
<br>PRAGMA synchronous = FULL;
13301360
<br>PRAGMA synchronous = NORMAL;
13311361
<br>PRAGMA synchronous = OFF;</b></p>
1332-
<p>Query or change the setting of the "synchronous" flag in
1333-
the database for the duration of the current database connect.
1362+
<p>Query or change the setting of the "synchronous" flag affecting
1363+
the database for the duration of the current database connection.
13341364
The synchronous flag reverts to its default value when the database
13351365
is closed and reopened. For additional information on the synchronous
1336-
flag, see the description of the <b>default_synchronous</b> pragma.</p>
1366+
flag, see the description of the <a href="#pragma_default_synchronous">
1367+
<b>default_synchronous</b></a> pragma.</p>
13371368
</li>
13381369

13391370
<li><p><b>PRAGMA table_info(</b><i>table-name</i><b>);</b></p>
13401371
<p>For each column in the named table, invoke the callback function
13411372
once with information about that column, including the column name,
13421373
data type, whether or not the column can be NULL, and the default
1343-
value for the column.</p>
1374+
value for the column.</p></li>
1375+
1376+
<a name="pragma_temp_store"></a>
1377+
<li><p><b>PRAGMA temp_store;
1378+
<br>PRAGMA temp_store = default;
1379+
<br>PRAGMA temp_store = memory;
1380+
<br>PRAGMA temp_store = file;</b></p>
1381+
<p>Query or change the setting of the "temp_store" flag affecting
1382+
the database for the duration of the current database connection.
1383+
The temp_store flag reverts to its default value when the database
1384+
is closed and reopened. For additional information on the temp_store
1385+
flag, see the description of the <a href="#pragma_default_temp_store">
1386+
<b>default_temp_store</b></a> pragma. Note that it is possible for
1387+
the library compile-time options to override this setting. </p>
1388+
</li>
13441389

13451390
<li><p><b>PRAGMA vdbe_trace = ON;<br>PRAGMA vdbe_trace = OFF;</b></p>
13461391
<p>Turn tracing of the virtual database engine inside of the

0 commit comments

Comments
 (0)