Lasso Soft Inc. > Home

[ database_registry->getDatabaseByID ]

Method

The [database_registry->getDatabaseById] method searches Lasso's internal databases to find the database with the specified ID. 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->getDatabaseById(#intID)
Examples
  • Beginner

Display the Internal Information About a Database Using Its ID

The example below will display the string representation of the map data for the database whose ID is 5.

Code

local(dr) = database_registry
#dr->doWithClose => {^
    #dr->getDatabaseById(5)
^}

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