Lasso Soft Inc. > Home

[ database_registry->getDatasource ]

Method

The [database_registry->getDatasource] method takes in either the ID of a data source or the name of a data source and returns a map of the data source information stored in Lasso's interal databases.

  • Syntax
database_registry->getDatasource(#ds_name)

database_registry->getDatasource(#ds_ID)
Examples
  • Beginner

Display the Data for the MySQLDS Data Source

The example below will display the string representation of the map data for the "MySQLDS" data source.

Code

local(dr) = database_registry
#dr->doWithClose => {^
    #dr->getDatasource('MySQLDS')
^}

Result

map(alias = , enabled = Y, id = 1, name = MySQLDS)

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