Skip to content
Stephane Carrez edited this page Aug 21, 2018 · 2 revisions

Database Drivers

Database Drivers

The ADO.Drivers package represents the database driver that will create database connections and provide the database specific implementation. The driver is either statically linked to the application and can be loaded dynamically if it was built as a shared library. For a dynamic load, the driver shared library name must be prefixed by libada_ado_. For example, for a mysql driver, the shared library name is libada_ado_mysql.so.

Initialization

The ADO runtime must be initialized by calling one of the Initialize operation. A property file contains the configuration for the database drivers and the database connection properties.

ADO.Drivers.Initialize ("db.properties");

Once initialized, a configuration property can be retrieved by using the Get_Config operation.

URI : constant String := ADO.Drivers.Get_Config ("ado.database");

Generated by Dynamo from ado-drivers.ads

Clone this wiki locally