Property | Type | Description | |
---|---|---|---|
$adapter | null | Zend_Db_Adapter_Abstract | ||
$config | Zend_Config |
Method | 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. |
Method | 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 | |
return | void |
protected enableOldConfigCompatibility ( ) : DbPatch_Core_Db | ||
return | DbPatch_Core_Db |
public getAdapter ( ) : null | Zend_Db_Adapter_Abstract | ||
return | null | Zend_Db_Adapter_Abstract |
public reconnect ( ) : DbPatch_Core_Db | ||
return | DbPatch_Core_Db |
protected null|Zend_Db_Adapter_Abstract $adapter | ||
return | null | Zend_Db_Adapter_Abstract |