Database :: resourceDatabase - Resource database
The property contains the currently attached resource database. Usually, resources required for running an application (functions, GUI elements, etc.) are stored together with the database schema in the dictionary. In some cases, it is, however, more appropriate, using a separate resource database (e.g. for running different applications with the same dictionary).
When no other resource database has been attached to the database, the dictionary is used as resource 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
- Get currently attached resource database
Database :: resourceDatabase (  ) - Change attached resource database
Database :: resourceDatabase ( rDatabase )
Implementation details
-
Get currently attached resource database
odaba::Database & Database  :: resourceDatabase (  )
When no resource database has been attached explicitly, the resource database is the dictionary. When the database has been opened via data source handle, the resource database is the database that has been defined as such (RESOURCES option) or the dictionary when no resource database has been defined.
to list
-
Change attached resource database
odaba::Database & Database  :: resourceDatabase ( odaba::Database &rDatabase )
Setting a resource database will detach the resource database attached automatically. Attaching a resource database will not affect resources already loaded. Usually, resource databases should be attached after opening the database.
- rDatabase
- Database handle
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.
to list
- rDatabase
- Database handle