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.Type | Intent | Optional | 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. |