company logo

GUIBaseContext :: database - Get Database Handle

The function returns the database, which is associated with the application or the project. The database is taken from the project handle and not from the current data source (property handle). In order to get the database for the current data source (property handle) one may call:

property().database();

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

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

Implementation details

odaba::Database & GUIBaseContext  :: database (  )