company logo

DataSource :: resourceDatabase - Resource database handle

When the data source handle has been opened successfully, this handle refers to the opened resource database (when being defined). The handle can be checked by calling resourceDatabase.isValid().

Return value:  Database handle ( odaba::Database & )

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

Implementation overview

Implementation details

  1. Get resource database handle
    odaba::Database & DataSource  :: resourceDatabase (  )

    The property returns the resource database handle for the data source. The resource database handle might be invalid, when the data source has not been opened or has not been opened successfully.

  2. to list
  3. Set resource database
    odaba::Database & DataSource  :: resourceDatabase ( odaba::Database &cResourceDatabase )

    The function closes the resource database handle when being opened. It copies the resource database handle passed in rResourceDatabase to the data source and replaces the resource database path by the database path from the resource database.

    • cResourceDatabase - Resource database

      A resource database provides schema information about a database and other project resources as forms, methods etc.

  4. to list