Close - Maple Help

Home : Support : Online Help : Connectivity : Database Package : SQLite : Database/SQLite/Close

Database[SQLite]

 Close
 close database connection

 Calling Sequence Close( connection )

Parameters

 connection - database connection obtained using the Open command

Description

 • The Close command closes the database connection.

Examples

 > $\mathrm{with}\left(\mathrm{Database}\left[\mathrm{SQLite}\right]\right):$
 > $\mathrm{db}≔\mathrm{FileTools}\left[\mathrm{JoinPath}\right]\left(\left[\mathrm{kernelopts}\left('\mathrm{datadir}'\right),"SQLite","G20-Population.db"\right]\right):$
 > $\mathrm{connection}≔\mathrm{Open}\left(\mathrm{db}\right)$
 ${"SQLite database"}{,}{table}{}\left(\left[{"main"}{=}{"C:\Program Files\Maple 2021\data\SQLite\G20-Population.db"}\right]\right)$ (1)
 > $\mathrm{Close}\left(\mathrm{connection}\right)$
 ${"SQLite database: connection closed"}$ (2)

Compatibility

 • The Database[SQLite][Close] command was introduced in Maple 18.