Database[SQLite]
Opened
list opened databases
Calling Sequence
Parameters
Description
Examples
Compatibility
Opened( connection )
connection
-
database connection obtained using the Open command
The Opened command returns a table that lists all opened databases for the given connection.
The key in the table is the name of the database and the value is the file name.
For in-memory or temporary databases, the file name is an empty string.
with⁡DatabaseSQLite:
db ≔ FileToolsJoinPath⁡kernelopts⁡'datadir',SQLite,G20-Population.db:
connection ≔ Open⁡db
SQLite database,table⁡main=C:\Program Files\Maple 2023\data\SQLite\G20-Population.db
Create and attach another in memory database
Attach⁡connection,:memory:,database2:
Opened databases
Opened⁡connection
SQLite database,table⁡main=C:\Program Files\Maple 202\data\SQLite\G20-Population.db,database2=
Close⁡connection
SQLite database: connection closed
The Database[SQLite][Opened] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)