Lasso Soft Inc. > Home

[ database_registry->getDatasourceId ]

Method

The [database_registry->getDatasourceId] method takes in the name of a data source and returns the ID used in Lasso's internal SQLite databases.

  • Syntax
database_registry->getDatasourceId(#ds_name)
Examples
  • Beginner

Display the ID for the MySQLDS Data Source

The example below will display the ID of the "MySQLDS" data source.

Code

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

Result

1

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