Model
Db
Magento\Backup\Model\ResourceModel\Db
What it does
This class handles database backup operations in Magento 2, providing methods to extract database structure and data for backup purposes.
Developers would use this when implementing custom backup functionality or extending the built-in backup system to generate SQL dumps, including table schemas, foreign keys, triggers, and data exports.
Public Methods
- clear()
- getTables()
- getTableDropSql()
- getTableCreateSql()
- getTableForeignKeysSql()
- getTableTriggersSql()
- getTableStatus()
- getTableDataSql()
- getTableCreateScript()
- getTableHeader()
- getTableDataDump()
- getHeader()
- getFooter()
- getTableDataBeforeSql()
- getTableDataAfterSql()
- beginTransaction()
- commitTransaction()
- rollBackTransaction()
- runCommand()