Метод | Описание | |
---|---|---|
connect ( string $connect_string, string $db_user, string $db_pass ) : boolean | Extends default connection method. It will be useful in order to allow accents and other DB-centric global commands. | |
dbdelta ( $queries, $execute = true, $silent = true, boolean $doinserts = false ) : array | automatic diffing function - used for determining required database upgrades based on Owen Winkler's microwiki upgrade function | |
replace_concat ( array $matches ) : string | Replaces the MySQL CONCAT function with PostgreSQL-compatible statements | |
sql_t ( string $sql, array &$args ) : string | Database specific SQL translation function, loosely modelled on the internationalization _t() function. | |
upgrade_post ( integer $old_version, $upgrade_path = '' ) : boolean | Run all of the upgrades slated for post-dbdelta since the last database revision. | |
upgrade_pre ( integer $old_version, $upgrade_path = '' ) : boolean | Run all of the upgrades slated for pre-dbdelta since the last database revision. |
public replace_concat ( array $matches ) : string | ||
$matches | array | Matches from the regex in sql_t() |
Результат | string | The replacement for the MySQL SQL |
public upgrade_post ( integer $old_version, $upgrade_path = '' ) : boolean | ||
$old_version | integer | The current version of the database that is being upgraded |
Результат | boolean | True on success |
public upgrade_pre ( integer $old_version, $upgrade_path = '' ) : boolean | ||
$old_version | integer | The current version of the database that is being upgraded |
Результат | boolean | True on success |