Creates online backup of given database. The functions assumes 500 steps and a sleep time of 250 msec by default, if the arguments are not passed.
The function returns the following error codes:
E_DB if closing the database failed.E_DB_BACKUP if SQLite backup failed.E_EXIST if backup database exists.E_READ_ONLY if database is opened read-only.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database type. |
||
| character(len=*), | intent(in) | :: | path |
File path of backup database to be created. |
||
| logical, | intent(in), | optional | :: | wal |
Enable WAL mode for backup. |
|
| procedure(dm_db_backup_callback), | optional | :: | callback |
Progress callback routine. |
||
| integer, | intent(in), | optional | :: | nsteps |
Number of steps per iteration (default: 500). |
|
| integer, | intent(in), | optional | :: | sleep_time |
Sleep time per iteration in msec (default: 250 msec). |