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() .
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
- Get resource database handle
DataSource :: resourceDatabase (  ) - Set resource database
DataSource :: resourceDatabase ( cResourceDatabase )
Implementation details
-
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.
to list
-
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.
to list
- cResourceDatabase
- Resource database