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.
database_registry->getDatasource(#ds_name)
database_registry->getDatasource(#ds_ID)
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)
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments