Lasso Soft Inc. > Home

[ database_registry->close ]

Method

The [database_registry->close] method closes the connection to the SQLite database_registry database.

  • Syntax
atabase_registry->close
Examples
  • Beginner

Display the Active Data Sources

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

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft