Inheritance diagram for SQLiteConnection:
Collaboration diagram for SQLiteConnection:Public Member Functions | |
| sql_t ($sql) | |
| replace_concat ($matches) | |
| connect ($connect_string, $db_user, $db_pass) | |
| dbdelta ($queries, $execute=true, $silent=true, $doinserts=false) | |
| execute_procedure ($procedure, $args=array()) | |
| upgrade_pre ($old_version, $upgrade_path= '') | |
| upgrade_post ($old_version, $upgrade_path= '') | |
Protected Member Functions | |
| filter_fieldnames ($row) | |
Definition at line 8 of file connection.php.
| SQLiteConnection::connect | ( | $ | connect_string, | |
| $ | db_user, | |||
| $ | db_pass | |||
| ) |
Connect to SQLite Overrides the DatabaseConnection to return false if the SQLite file doesn't exist.
| connection_string | string a PDO connection string | |
| db_user | string the database user name | |
| db_pass | string the database user password |
Reimplemented from DatabaseConnection.
Definition at line 57 of file connection.php.
| SQLiteConnection::dbdelta | ( | $ | queries, | |
| $ | execute = true, |
|||
| $ | silent = true, |
|||
| $ | doinserts = false | |||
| ) |
automatic diffing function - used for determining required database upgrades based on Owen Winkler's microwiki upgrade function
| queries | array of create table and insert statements which constitute a fresh install | |
| (optional) | execute should the queries be executed against the database or just simulated. default = true | |
| (optional) | silent silent running with no messages printed? default = true |
Definition at line 86 of file connection.php.
| SQLiteConnection::execute_procedure | ( | $ | procedure, | |
| $ | args = array() | |||
| ) |
Execute a stored procedure
| procedure | name of the stored procedure | |
| args | arguments for the procedure |
Reimplemented from DatabaseConnection.
Definition at line 195 of file connection.php.
| SQLiteConnection::filter_fieldnames | ( | $ | row | ) | [protected] |
Filter out the fieldnames from whole pragma rows
| StdClass | $row A row result from a SQLite PRAGMA table_info query |
Definition at line 228 of file connection.php.
| SQLiteConnection::replace_concat | ( | $ | matches | ) |
Replaces the MySQL CONCAT function with SQLite-compatible statements
| array | $matches Matches from the regex in sql_t() |
Definition at line 42 of file connection.php.
| SQLiteConnection::sql_t | ( | $ | sql | ) |
database specific SQL translation function, loosely modelled on the internationalization _t() function Call with a database independent SQL string and it will be translated to a SQLite specific SQL string
| sql | database independent SQL |
Reimplemented from DatabaseConnection.
Definition at line 19 of file connection.php.
| SQLiteConnection::upgrade_post | ( | $ | old_version, | |
| $ | upgrade_path = '' | |||
| ) |
Run all of the upgrades slated for post-dbdelta since the last database revision.
| integer | $old_version The current version of the database that is being upgraded |
Definition at line 217 of file connection.php.
| SQLiteConnection::upgrade_pre | ( | $ | old_version, | |
| $ | upgrade_path = '' | |||
| ) |
Run all of the upgrades slated for pre-dbdelta since the last database revision.
| integer | $old_version The current version of the database that is being upgraded |
Definition at line 206 of file connection.php.
1.7.1