Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | isSupported () |
Fonctions membres publiques statiques hérités de PdoDriver | |
static | isSupported () |
Fonctions membres publiques statiques hérités de DatabaseDriver | |
static | getInstance (array $options=[]) |
static | splitSql ($sql) |
Champs de données | |
$name = 'sqlite' | |
Champs de données hérités de PdoDriver | |
$name = 'pdo' | |
Champs de données hérités de DatabaseDriver | |
$serverType | |
Attributs protégés | |
$nameQuote = '`' | |
Attributs protégés hérités de PdoDriver | |
$connection | |
$nameQuote = "'" | |
$nullDate = '0000-00-00 00:00:00' | |
Attributs protégés hérités de DatabaseDriver | |
$name | |
$connection | |
$count = 0 | |
$cursor | |
$executed = false | |
$limit = 0 | |
$nameQuote | |
$nullDate | |
$offset = 0 | |
$options | |
$sql | |
$statement | |
$tablePrefix | |
$utf = true | |
$errorNum = 0 | |
$errorMsg | |
$transactionDepth = 0 | |
$factory | |
$monitor | |
Membres hérités additionnels | |
Fonctions membres protégées hérités de PdoDriver | |
prepareStatement (string $query) | |
Fonctions membres protégées hérités de DatabaseDriver | |
dispatchEvent (EventInterface $event) | |
fetchArray () | |
fetchAssoc () | |
fetchObject () | |
freeResult () | |
getAlterDbCharacterSet ($dbName) | |
getCreateDatabaseQuery ($options, $utf) | |
getDatabase () | |
prepareStatement (string $query) | |
quoteNameString ($name, $asSinglePart=false) | |
quoteNameStr ($strArr) | |
Attributs protégés statiques hérités de DatabaseDriver | |
static | $connectors = [] |
static | $instances = [] |
static | $dbMinimum |
SQLite database driver supporting PDO based connections
__destruct | ( | ) |
alterDbCharacterSet | ( | $dbName | ) |
Alter database's character set.
string | $dbName | The database name that will be altered |
connect | ( | ) |
Connects to the database if needed.
RuntimeException |
Implémente DatabaseInterface.
Références null.
Référencé par SqliteDriver\getTableColumns(), SqliteDriver\getTableCreate(), SqliteDriver\getTableKeys(), SqliteDriver\getTableList(), SqliteDriver\getVersion(), SqliteDriver\select(), SqliteDriver\setUtf(), SqliteDriver\transactionCommit(), SqliteDriver\transactionRollback(), et SqliteDriver\transactionStart().
createDatabase | ( | $options, | |
$utf = true |
|||
) |
Create a new database using information from $options object.
\stdClass | $options | Object used to pass user and database name to database driver. This object must have "db_name" and "db_user" set. |
boolean | $utf | True if the database supports the UTF-8 character set. |
Implémente DatabaseInterface.
escape | ( | $text, | |
$extra = false |
|||
) |
Method to escape a string for usage in an SQLite statement.
Note: Using query objects with bound variables is preferable to the below.
string | $text | The string to be escaped. |
boolean | $extra | Unused optional parameter to provide extra escaping. |
Implémente DatabaseInterface.
Références $text.
getCollation | ( | ) |
Method to get the database collation in use by sampling a text field of a table in the database.
Implémente DatabaseInterface.
getConnectionCollation | ( | ) |
Method to get the database connection collation in use by sampling a text field of a table in the database.
Implémente DatabaseInterface.
getConnectionEncryption | ( | ) |
Method to get the database encryption details (cipher and protocol) in use.
Implémente DatabaseInterface.
getTableColumns | ( | $table, | |
$typeOnly = true |
|||
) |
Retrieves field information about a given table.
string | $table | The name of the database table. |
boolean | $typeOnly | True to only return field types. |
Implémente DatabaseInterface.
Références $columns, $field, $fields, SqliteDriver\connect(), PdoDriver\getOption(), PdoDriver\setOption(), et DatabaseDriver\setQuery().
getTableCreate | ( | $tables | ) |
Shows the table CREATE statement that creates the given tables.
Note: Doesn't appear to have support in SQLite
mixed | $tables | A table name or a list of table names. |
Références SqliteDriver\connect().
getTableKeys | ( | $table | ) |
Get the details list of keys for a table.
string | $table | The name of the table. |
Implémente DatabaseInterface.
Références $rows, SqliteDriver\connect(), PdoDriver\getOption(), PdoDriver\setOption(), et DatabaseDriver\setQuery().
getTableList | ( | ) |
Method to get an array of all tables in the database (schema).
Implémente DatabaseInterface.
Références $query, $type, SqliteDriver\connect(), DatabaseDriver\getQuery(), et DatabaseDriver\setQuery().
getVersion | ( | ) |
Get the version of the database connector.
Implémente DatabaseInterface.
Références SqliteDriver\connect(), et DatabaseDriver\setQuery().
isConnectionEncryptionSupported | ( | ) |
Method to test if the database TLS connections encryption are supported.
Implémente DatabaseInterface.
|
static |
Test to see if the PDO ODBC connector is available.
Implémente DatabaseInterface.
lockTable | ( | $table | ) |
Locks a table in the database.
string | $table | The name of the table to unlock. |
Implémente DatabaseInterface.
Références $this.
Renames a table in the database.
string | $oldTable | The name of the table to be renamed |
string | $newTable | The new name for the table. |
string | $backup | Not used by Sqlite. |
string | $prefix | Not used by Sqlite. |
Implémente DatabaseInterface.
Références $this, et DatabaseDriver\setQuery().
select | ( | $database | ) |
Select a database for use.
string | $database | The name of the database to select for use. |
Implémente DatabaseInterface.
Références SqliteDriver\connect().
setUtf | ( | ) |
Set the connection to use UTF-8 character encoding.
Returns false automatically for the Oracle driver since you can only set the character set when the connection is created.
Références SqliteDriver\connect().
transactionCommit | ( | $toSavepoint = false | ) |
Method to commit a transaction.
boolean | $toSavepoint | If true, commit to the last savepoint. |
Implémente DatabaseInterface.
Références SqliteDriver\connect().
transactionRollback | ( | $toSavepoint = false | ) |
Method to roll back a transaction.
boolean | $toSavepoint | If true, rollback to the last savepoint. |
Implémente DatabaseInterface.
Références SqliteDriver\connect(), DatabaseDriver\quoteName(), et DatabaseDriver\setQuery().
transactionStart | ( | $asSavepoint = false | ) |
Method to initialize a transaction.
boolean | $asSavepoint | If true and a transaction is already active, a savepoint will be created. |
Implémente DatabaseInterface.
Références DatabaseDriver\$transactionDepth, SqliteDriver\connect(), DatabaseDriver\quoteName(), et DatabaseDriver\setQuery().
truncateTable | ( | $table | ) |
Method to truncate a table.
string | $table | The table to truncate |
Implémente DatabaseInterface.
Références DatabaseDriver\quoteName(), et DatabaseDriver\setQuery().
unlockTables | ( | ) |
Unlocks tables in the database.
Implémente DatabaseInterface.
Références $this.
$name = 'sqlite' |
|
protected |