The [database_registry->close] method closes the connection to the SQLite database_registry database.
atabase_registry->close
The example below output's the names of the data source connectors that are currently available for the current Lasso instance. I have the call to the [database_registry->close] method in a [handle] block because I want that code to be executed even if the code that follows fails.
Code
local(dr) = database_registry
handle => { #dr->close }
with ds in #dr->listActiveDatasources sum #ds->find('name') + '\n'
Result
MySQLDS PostgreSQL ODBC SQLiteConnector filemakerds
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments