dm_db_attach Function

public function dm_db_attach(db, path, name) result(rc)

Uses

  • proc~~dm_db_attach~~UsesGraph proc~dm_db_attach dm_db_attach module~dm_file dm_file proc~dm_db_attach->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

Attaches the database at path to the current connection. If no name is passed for the attached database, the name will be set to attached. The function trims the given path and name strings.

The function returns the following error codes:

  • E_DB_ATTACH if database attach query failed.
  • E_NOT_FOUND if database at path does not exist.

Arguments

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

Database type.

character(len=*), intent(in) :: path

Path of database to attach.

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

Name of attached database.

Return Value integer


Calls

proc~~dm_db_attach~~CallsGraph proc~dm_db_attach dm_db_attach proc~dm_file_exists dm_file_exists proc~dm_db_attach->proc~dm_file_exists proc~dm_is_error dm_is_error proc~dm_db_attach->proc~dm_is_error sqlite3_exec sqlite3_exec proc~dm_db_attach->sqlite3_exec