company logo

DataSource :: name - Data source name

The data source name is the option name, that defines the data source. Usually, the data source name corresponds to a section name in a configuration or ini-file.

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. Get data source name
    odaba::String DataSource  :: name (  )

    The function returns the data source name currently set.

  2. to list
  3. Change data source name
    odaba::String DataSource  :: name ( odaba::String &sName )

    The data source name can be set in order to initialize a data source from the configuration or ini-file. Setting the data source name passed in sName will not affect the data source currently opened. The data source name must be set before opening the data source (open()) in order to open a database according to the settings in the corresponding option.

    • sName - Name
  4. to list