Lasso Soft Inc. > Home

[ database_registry->getDatabaseByName ]

Method

The [database_registry->getDatabaseByName] method searches Lasso's internal databases to find the first database with the specified name in any of the hosts. It then returns a map, the keys of which are the column names for the table that tracks the databases, and the values are the values for the found database.

  • Syntax
database_registry->getDatabaseByName('mydbName')
Examples
  • Beginner

Retrieve the Internal Information About the Lasso Email Database

The example below will display the string representation of the map data for the "lasso_email" database.

Code

local(dr) = database_registry
#dr->doWithClose => {^
    #dr->getDatabaseByName('lasso_email')
^}

Result

map(alias = lasso_email, enabled = Y, id = 5, id_datasource = 4, id_host = 1, name = lasso_email)

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