code: function ImmutableDatabaseMariaSQL (connectionParams, options) {
      // validate optional args - create objects if not passed in
      options = requireValidOptionalObject(options)
      // get log client from options
      if (options.logClient !== undefined) {
          // validate that log client has correct interface
          requireValidLogClient(options.logClient)
          // store log client locally until after connection details are logged
          var logClient = options.logClient
      }
      // get unique id
      var uniqueId = randomUniqueId()
      // store connection params
      this.connectionName = options.connectionName
      this.connectionNum = options.connectionNum || 0
      this.connectionParams = connectionParams
      this.connectionCreateTime = uniqueId.timestamp
      this.connectionId = uniqueId.id
      this.instanceId = instanceId.id
      // log the db connection
      if (logClient) {
          // log db connection
          logClient.log('dbConnection', this)
          // store log client for query logging
          this.logClient = logClient
      }
      // create new client instance
      this.client = new MariaSQL(connectionParams)
      // promisify query methods
      this.client.queryPromise = Promise.promisify(this.client.query)
      // set error handler
      this.client.on('error', err => {
          // if log client is set then use it to log error
          if (logClient) {
              logClient.error(err)
          }
          // otherwise console log
          else {
              console.error(err)
          }
      })
      // if automock wrapper function is set then call function with new instance
      // so that automock wrapper can be applied
      if (immutableDatabaseMariasql.automockFunction) {
          immutableDatabaseMariasql.automockFunction(this)
      }
  }
docs: @function ImmutableDatabaseMariaSQL
  
  instantiate a new immutable database connection object using the mariasql
  driver.
  
  @param {object} connectionParams - connection params to pass to db driver
  @param {object} options - connection options
  
  @returns {ImmutableDatabaseMariaSQL}
  
  @throws {Error}