As a rule, query databases are automatically closed when either the Batch Processor terminates or if not batch processing, when action processing terminates. Modifications are automatically saved.
If for any reason you wish to close a query database manually, you can do so via this statement. The statement allows you to close discarding changes, close saving changes or to save changes and keep the database open.
Click here for information on identifying an open database.
The path may contain any of the escape sequences described in Escape Sequences.