LassoScript Utility
Basics Browse Detail


Tag Link [Lasso_DatasourceModuleName] Category Administration
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x


[Lasso_DatasourceModuleName] returns the name of the Lasso database connector that hosts a specified database.

The returned value will usually be one of "SQLiteConnector" for the built-in SQLite data source, "MySQLDS" for an external MySQL installation, "FMRemoteDataSource" for a FileMaker Pro data source, or "FMServerAdvancedDataSource" for a FileMaker Server Advanced data source.


[Lasso_DatasourceModuleName: 'Database Name']


Required Parameters
Database Name The name of the database for which the module name should be returned.


To list all of the databases available through Lasso with their associated data source:

Use the [Lasso_DatasourceModuleName] tag to display the data source used by each database listed by the [Database_Names] ... [/Database_Names] container tag.

  [Lasso_DatasourceModuleName: (Database_NameItem)]

<br>Contacts.fp5 FMRemoteDataSource
<br>People.fp5 FMRemoteDataSource
<br>Contacts InternalMySQLDS
<br>Lasso_Admin InternalMySQLDS
<br>Lasso_Internal InternalMySQLDS
<br>Site InternalMySQLDS

To check what data source a database is being served by:

Use the [Lasso_DatasourceModuleName] tag. The following example displays what data source is being used to serve the Contacts database.

<br>Contacts.fp5 is being served by [Lasso_DatasourceModuleName].

<br>Contacts is being served by FMRemoteDataSource.