dm_db_vacuum Function

public function dm_db_vacuum(db, into) result(rc)

Uses

  • proc~~dm_db_vacuum~~UsesGraph proc~dm_db_vacuum dm_db_vacuum module~dm_file dm_file proc~dm_db_vacuum->module~dm_file module~dm_error dm_error module~dm_file->module~dm_error module~dm_kind dm_kind module~dm_file->module~dm_kind module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Vacuums database schema main, or, if into is passed, vacuums it into new database at given path.

The function returns the following error codes:

  • E_DB_BIND if value binding failed.
  • E_DB_PREPARE if statement preparation failed.
  • E_DB_STEP if step execution failed or no write permission.
  • E_EXIST if into is passed and the file exists.

Arguments

Type IntentOptional Attributes Name
type(db_type), intent(inout) :: db

Database type.

character(len=*), intent(in), optional :: into

File path to vacuum database.

Return Value integer


Calls

proc~~dm_db_vacuum~~CallsGraph proc~dm_db_vacuum dm_db_vacuum proc~dm_file_exists dm_file_exists proc~dm_db_vacuum->proc~dm_file_exists sqlite3_bind_text sqlite3_bind_text proc~dm_db_vacuum->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_vacuum->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_vacuum->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_vacuum->sqlite3_step