Skip to content

qie.isMySQLDatabase

Signature: qie.isMySQLDatabase(connectionName)

Returns: Boolean isMySql - true if this is a MySQL database connection, otherwise false

Returns true if the connectionName is a MySQL database connection.

Parameters

Type Name Description Default
String connectionName the name of the database connection

Example

// The database flavor decides which SQL syntax to build for each connection.
var names = qie.getDbConnectionNames();
for (var i = 0; i < names.length; i++) {
   var connectionName = names[i];

   if (qie.isMySQLDatabase(connectionName)) {
      // Build the MySQL flavor of the query for this connection.
   }
}