MediaWiki  1.30.0
Sqlite Class Reference

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 32 of file sqlite.inc.

Member Function Documentation

◆ checkSqlSyntax()

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
array | string$files
Exceptions
MWException
Returns
bool True if no error or error string in case of errors

Definition at line 50 of file sqlite.inc.

References $e, $tables, and as.

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

◆ isPresent()

static Sqlite::isPresent ( )
static

Checks whether PHP has SQLite support.

Returns
bool

Definition at line 38 of file sqlite.inc.

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


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