FireDAC.Phys.SQLite.TFDSQLiteBackup
Delphi
TFDSQLiteBackup = class (TFDSQLiteService)
C++
class PASCALIMPLEMENTATION TFDSQLiteBackup : public TFDSQLiteService
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FireDAC.Phys.SQLite.pas FireDAC.Phys.SQLite.hpp |
FireDAC.Phys.SQLite | FireDAC.Phys.SQLite |
Description
The class implementing the SQLite backup, restore and copy database functionality.
Use the TFDSQLiteBackup component to add a backup, restore, copy database capability to an application.
To produce a DB backup, an application should:
- Specify DriverLink.
- Specify Database or DatabaseObj - a source database file name or object to backup.
- Specify DestDatabase or DestDatabaseObj - a destination database file name or object to put a database backup file.
- Optionally specify WaitForLocks and BusyTimeout to avoid locking conflicts.
- Call the Backup method.
Other properties and methods are optional.
The SQLite backup actually copies the specified database into a new file. The copying is consistent and does not depend on the currently connected users.
Also, the copying can be performed not only between files, but also between memory and file or backwards. In this case, use DatabaseObj or DestDatabaseObj to specify the connected memory database.