From: jplyon
"
if {$label!=""} {
- puts ""
+ puts ""
}
puts "$name
\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.
The pragmas that take an integer value also accept +symbolic names. The strings "on", "true", and "yes" +are equivalent to 1. The strings "off", "false", +and "no" are equivalent to 0. These strings are case- +insensitive, and do not require quotes. An unrecognized string will be +treated as 1, and will not generate an error. When the value +is returned it is as an integer.
+The current implementation supports the following pragmas:
PRAGMA count_changes = ON;
-
PRAGMA count_changes = OFF;
PRAGMA count_changes = ON; (1)
+
PRAGMA count_changes = OFF; (0)
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.
@@ -1265,7 +1273,7 @@ with caution.PRAGMA default_cache_size;
PRAGMA default_cache_size = Number-of-pages;
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 cache_size pragma with the additional feature that it changes the cache size persistently. With this pragma, @@ -1274,24 +1282,25 @@ with caution.
PRAGMA default_synchronous;
-
PRAGMA default_synchronous = FULL;
-
PRAGMA default_synchronous = NORMAL;
-
PRAGMA default_synchronous = OFF;
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.
PRAGMA default_temp_store;
-
PRAGMA default_temp_store = DEFAULT;
-
PRAGMA default_temp_store = MEMORY;
-
PRAGMA default_temp_store = FILE;
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.
@@ -1323,8 +1332,8 @@ with caution. thing but only applies the setting to the current session.PRAGMA empty_result_callbacks = ON;
-
PRAGMA empty_result_callbacks = OFF;
PRAGMA empty_result_callbacks = ON; (1)
+
PRAGMA empty_result_callbacks = OFF; (0)
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 "argv" parameter to the callback is set to NULL @@ -1333,8 +1342,8 @@ with caution.
determine the number and names of the columns that would have been in the result set had the set not been empty.PRAGMA full_column_names = ON;
-
PRAGMA full_column_names = OFF;
PRAGMA full_column_names = ON; (1)
+
PRAGMA full_column_names = OFF; (0)
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.
a description of all problems. If everything is in order, "ok" is returned.PRAGMA parser_trace = ON;
PRAGMA parser_trace = OFF;
PRAGMA parser_trace = ON; (1)
+
PRAGMA parser_trace = OFF; (0)
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.
PRAGMA show_datatypes = ON;
PRAGMA show_datatypes = OFF;
PRAGMA show_datatypes = ON; (1)
+
PRAGMA show_datatypes = OFF; (0)
When turned on, the SHOW_DATATYPES pragma causes extra entries containing the names of datatypes of columns to be appended to the 4th ("columnNames") argument to sqlite_exec() @@ -1399,9 +1410,9 @@ with caution.
PRAGMA synchronous;
-
PRAGMA synchronous = FULL;
-
PRAGMA synchronous = NORMAL;
-
PRAGMA synchronous = OFF;
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.
PRAGMA temp_store;
-
PRAGMA temp_store = DEFAULT;
-
PRAGMA temp_store = MEMORY;
-
PRAGMA temp_store = FILE;
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.
PRAGMA vdbe_trace = ON;
PRAGMA vdbe_trace = OFF;
PRAGMA vdbe_trace = ON; (1)
+
PRAGMA vdbe_trace = OFF; (0)
Turn tracing of the virtual database engine inside of the SQLite library on and off. This is used for debugging. See the VDBE documentation for more