Method | Description | |
---|---|---|
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 | |
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 upgrade_post ( integer $old_version, $upgrade_path = '' ) : boolean | ||
$old_version | integer | The current version of the database that is being upgraded |
return | 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 |
return | boolean | True on success |