Lasso Soft Inc. > Home

[ database_registry->listActiveDatasources ]

Method

The [database_registry->listActiveDatasources] method returns a [queriable_select] with each member being a map of the data source information stored in Lasso's internal databases.

  • Syntax
database_registry->listActiveDatasources
Examples
  • Beginner

Display the Names of the Active Data Sources

The following example uses a query expression to go through and display all the names of the data sources available to the instance.

Code

local(dr) = database_registry
#dr->doWithClose => {^
    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