company logo

DataSource :: databaseType - DATABASE.TYPE option

The 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.

DATABASE.TYPE=ORACLE

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 database storage type
    odaba::StorageTypes DataSource  :: databaseType (  )

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

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

    The function allows changing the database storage type for the data source. The function does not close the database, when it has been opened. The new database storage type is used, when reopening the 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