 #
 # Returns an {Object} with session and id properties, suitable for passing to
 # the also-exported `aql` function.
-affqisConnect = (realm, config) ->
+connectAffqis = (realm, config) ->
   realmConfig = config[realm]
   session = connect.sync null, realm, config.host, config.port
   jdbcId = connectJdbc.sync null, session,

      cb(null, status))
    .catch(cb)
  asyncCall.sync null, id
# * `session`: {Object} returned from `affqisConnect`
# * `sql`: {String} SQL statement (one single statement) to execute.
#

  executeQuery.sync null, session, id, sql

module.exports =
  connect: connectAffqis
  aql: aql
  disconnect: disconnect
