company logo

DataSource :: setClient - Set client for data source

In order to use the same client connection for different data sources, a client managed by the application can be assigned explicitly to the data source. Assigning a client to a data source will close and disconnect the data source completely when being opened.

Implementation details

DataSource  :: setClient ( odaba::Client &cClient )
  • cClient - Client handle

    The client handle refers to an (usually) opened ODABA client. Calling functions with invalid client handles may cause an exception. For checking the client handle, isValid() can be called.