protected function _listTables(bool
$prefixLimit = false, ?string
$tableName = null
): string
{ if ($tableName !== null
) { return 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\''
. ' AND "NAME" NOT LIKE \'sqlite!_%\' ESCAPE \'!\''
. ' AND "NAME" LIKE ' .
$this->
escape($tableName);
} return 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\''
. ' AND "NAME" NOT LIKE \'sqlite!_%\' ESCAPE \'!\''
.
(($prefixLimit !== false &&
$this->DBPrefix !== ''
) ? ' AND "NAME" LIKE \'' .
$this->
escapeLikeString($this->DBPrefix
) . '%\' ' .
sprintf($this->likeEscapeStr,
$this->likeEscapeChar
) : ''
);
} /**
* Generates a platform-specific query string so that the column names can be fetched.
*/
protected function _listColumns(string
$table = ''
): string
{ return 'PRAGMA TABLE_INFO(' .
$this->
protectIdentifiers($table, true, null, false
) . ')';
}