company logo

DataSource :: resourceDatabaseType - Resource database type

The resource database can be stored in different data storage formats supported by ODABA. ODABA storage format is the default because it is the most efficient format for storing complex data structures.

ODABA automatically distinguishes between ODABA and XML databases. When, however, running e.g. an ORACLE database, the type must be defined explicitly. The database type option can be defined in a configuration file as sub option for the database option.

The following values are supported:

ODABA                        - ODABA database format

XMLDatabase          - XML file

ORACLE                       - ORACLE database

SQLSERVER              - Microsoft SQL database

MySQL                          - MySQL database

Relational database formats (ORACLE, MS_SQL) require an ODABA object relationship mapper (ORM), which allows managing relationships and transactions efficiently. The ORM is a small ODABA database, which contains derived information from the original data. Since the ORM database does not add information to the underlying data, it can be reconstructed from the relational database at any time.

TYPE=MySQL

Return value:  Database storage type ( odaba::StorageTypes  )

The database storage type defines the type of database used for storing data. Usually, the storage type is ODABA.

Implementation overview

Implementation details

  1. Get resource database storage type
    odaba::StorageTypes DataSource  :: resourceDatabaseType (  )

    The function returns the resource database storage type, which is usually ODABA.

  2. to list
  3. Set resource database storage type
    odaba::StorageTypes DataSource  :: resourceDatabaseType ( odaba::StorageTypes eStorageType )

    The function allows changing the resource database storage type for the data source. The function does not close the resource database, when it is still open. The new resource database storage type is used, when reopening the resource database.

    • eStorageType - Database storage type

      The database storage type defines the type of database used for storing data. Usually, the storage type is ODABA.

  4. to list