company logo

DataSource :: connectionName - CONNECTION_NAME option

The connection name is used for reconnecting the database.

Return value:  Connection name ( odaba::String & )

This is a unique connection name assigned to the connection. When caching connections (e.g. when running WEB applications), connections are not closed when a client disconnects. The connection name is used for fast client reconnect. Moreover, the client session on the server side is able to maintain client states while the client is not closed.

Implementation overview

Implementation details

  1. Connection name
    odaba::String DataSource  :: connectionName (  )

    The function returns the unique connection name.

  2. to list
  3. Set connection name
    odaba::String DataSource  :: connectionName ( odaba::String &sConnectionName )

    Setting the connection name will not reconnect automatically. In order to activate the new connection, connect() has to be called.

    • sConnectionName - Connection name

      This is a unique connection name assigned to the connection. When caching connections (e.g. when running WEB applications), connections are not closed when a client disconnects. The connection name is used for fast client reconnect. Moreover, the client session on the server side is able to maintain client states while the client is not closed.

  4. to list