MediaWiki  REL1_22
Sqlite Class Reference

This class contains code common to different SQLite-related maintenance scripts. More...

List of all members.

Static Public Member Functions

static checkSqlSyntax ($files)
 Checks given files for correctness of SQL syntax.
static isPresent ()
 Checks whether PHP has SQLite support.

Detailed Description

This class contains code common to different SQLite-related maintenance scripts.

Definition at line 29 of file sqlite.inc.


Member Function Documentation

static Sqlite::checkSqlSyntax ( files) [static]

Checks given files for correctness of SQL syntax.

MySQL DDL will be converted to SQLite-compatible during processing. Will throw exceptions on SQL errors

Parameters:
$files
Exceptions:
MWException
Returns:
mixed true if no error or error string in case of errors

Definition at line 47 of file sqlite.inc.

References $columns, $file, $files, array(), as, and isPresent().

Referenced by SqliteMaintenance\checkSyntax(), and DatabaseSqliteTest\testEntireSchema().

static Sqlite::isPresent ( ) [static]

Checks whether PHP has SQLite support.

Returns:
bool

Definition at line 35 of file sqlite.inc.

Referenced by checkSqlSyntax(), and DatabaseSqliteTest\setUp().


The documentation for this class was generated from the following file: