Lasso Soft Inc. > Home

[ database_registry->getDatabaseByAlias ]

Method

The [database_registry->getDatabaseByAlias] method searches Lasso's internal databases to match the specified string with a database's unique alias. 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->getDatabaseByAlias('lasso_email')
Examples
  • Beginner

Display 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 by searching for it by its unique alias.

Code

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