/**
* Close an SQLite database
+ *
+ * @return bool
*/
function close() {
$this->mOpened = false;
/**
* Check if the searchindext table is FTS enabled.
- * @returns false if not enabled.
+ * @return false if not enabled.
*/
function checkForEnabledSearch() {
if ( self::$fulltextEnabled === null ) {
/**
* @see DatabaseBase::isWriteQuery()
+ *
+ * @return bool
*/
function isWriteQuery( $sql ) {
return parent::isWriteQuery( $sql ) && !preg_match( '/^ATTACH\b/i', $sql );
/**
* Get information about a given field
* Returns false if the field does not exist.
+ *
+ * @return SQLiteField|false
*/
function fieldInfo( $table, $field ) {
$tableName = $this->tableName( $table );
return call_user_func_array( $function, $args );
}
+ /**
+ * @param $s string
+ * @return string
+ */
protected function replaceVars( $s ) {
$s = parent::replaceVars( $s );
if ( preg_match( '/^\s*(CREATE|ALTER) TABLE/i', $s ) ) {
/*
* Build a concatenation list to feed into a SQL query
+ *
+ * @return string
*/
function buildConcat( $stringList ) {
return '(' . implode( ') || (', $stringList ) . ')';
*
* @param $prefix Only show tables with this prefix, e.g. mw_
* @param $fname String: calling function name
+ *
+ * @return array
*/
function listTables( $prefix = null, $fname = 'DatabaseSqlite::listTables' ) {
$result = $this->select(