Свойство | Type | Description | |
---|---|---|---|
$adapter | null | Zend_Db_Adapter_Abstract | ||
$config | Zend_Config |
Méthode | Description | |
---|---|---|
__construct ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : void | ||
dump ( string $filename ) : boolean | Dump database to file | |
getAdapter ( ) : null | Zend_Db_Adapter_Abstract | ||
getConfig ( ) : Zend_Config | ||
import ( string $filename ) : boolean | Import a SQL file | |
reconnect ( ) : DbPatch_Core_Db | Reconnect to the database, this will create a new adapter instance. |
Méthode | Description | |
---|---|---|
enableOldConfigCompatibility ( ) : DbPatch_Core_Db | This method provides backward compatibility for the 'bin_dir' configuration option. it could be removed in future versions. using bin_dir only is not sufficient because it limits the user to mysql/mysqldump. it's also not possible to use bin_dir and pass a Zend_Db_Adapter instance as configuration value. | |
getCliCommand ( string $command, string $filename ) : string |
public __construct ( Zend_Config | Zend_Config_Ini | Zend_Config_Xml $config ) : void | ||
$config | Zend_Config | Zend_Config_Ini | Zend_Config_Xml | |
Résultat | void |
protected enableOldConfigCompatibility ( ) : DbPatch_Core_Db | ||
Résultat | DbPatch_Core_Db |
public getAdapter ( ) : null | Zend_Db_Adapter_Abstract | ||
Résultat | null | Zend_Db_Adapter_Abstract |
public reconnect ( ) : DbPatch_Core_Db | ||
Résultat | DbPatch_Core_Db |
protected null|Zend_Db_Adapter_Abstract $adapter | ||
Résultat | null | Zend_Db_Adapter_Abstract |