Opened - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

Database[SQLite]

  

Opened

  

list opened databases

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Opened( connection )

Parameters

connection

-

database connection obtained using the Open command

Description

• 

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.

Examples

withDatabaseSQLite:

dbFileToolsJoinPathkerneloptsdatadir,SQLite,G20-Population.db:

connectionOpendb

SQLite database,tablemain=C:\Program Files\Maple 2024\data\SQLite\G20-Population.db

(1)

Create and attach another in memory database

Attachconnection,:memory:,database2:

Opened databases

Openedconnection

SQLite database,tablemain=C:\Program Files\Maple 202\data\SQLite\G20-Population.db,database2=

(2)

Closeconnection

SQLite database: connection closed

(3)

Compatibility

• 

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