Ada Database Objects 1.0.0 is available

By Stephane Carrez

The Ada Database Objects is a library that allows to easily access database contents for Ada applications.

From a UML class diagram model, the Dynamo code generator generates the Ada mapping files for UML classes. A UML class represents a database table and the generator defines an Ada tagged record in the mapping file to give access to the table. Saving a database record is as simple as invoking the Set procedure generated for each class attribute and calling the Save operation to persist the record in the database.

with Samples.User.Model;
with ADO.Sessions;
...
   DB    : ADO.Sessions.Master_Session
   User  : Samples.User.Model.User_Ref;
...
   User.Set_Name (Name);
   User.Set_Email (Email);
   User.Set_Description ("My friend " & Name);
   User.Set_Status (0);
   User.Save (DB);

The version 1.0.0 of the library brings the following improvements:

  • Support to load query results in Ada bean datasets
  • Added support to load dynamic database drivers
  • Port on FreeBSD
  • Support for the creation of Debian packages

Debian packages are provided in the http://apt.vacs.fr/ubuntu-raring and http://apt.vacs.fr/ubuntu-precise repository.

You can download the new version at http://download.vacs.fr/ada-ado/ada-ado-1.0.0.tar.gz

Add a comment

To add a comment, you must be connected. Login