Module SQLite::Pragmas
In: lib/sqlite/pragmas.rb

This module is intended for inclusion solely by the Database class. It defines convenience methods for the various pragmas supported by SQLite.

Two pragmas that have been intentionally excluded are SHOW_DATATYPES and EMPTY_RESULT_SETS, since these apply only to queries that use the SQLite "exec" function. The SQLite API does not employ that function, preferring instead the compile/step/finalize interface.

However, if you really must have those pragmas, you can always execute a pragma as if it were an SQL statement.

For a detailed description of these pragmas, see the SQLite documentation at sqlite.org/lang.html#pragma.

Methods

Constants

SYNCHRONOUS_MODES = [ [ 'full', 2 ], [ 'normal', 1 ], [ 'off', 0 ] ]   The enumeration of valid synchronous modes.
TEMP_STORE_MODES = [ [ 'default', 0 ], [ 'file', 1 ], [ 'memory', 2 ] ]   The enumeration of valid temp store modes.

Public Instance methods

Does an integrity check on the database. If the check fails, a SQLite::Exceptions::DatabaseException will be raised. Otherwise it returns silently.

[Validate]