Working with multiple database systems.

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
jjeffman
Senior Boarder
Senior Boarder
Posts: 56
Joined: 25.08.2005, 12:40
Location: Porto Alegre

Working with multiple database systems.

Post by jjeffman »

In my software house we need to work with multiple database systems like PostgreSQL, Oracle, Sybase and others.
The solution we have done to this problem was to make a different datamodule to every database system, and keep the same forms. So we have as many projects and datamodule folders as databases we deal with. Each project includes the correct datamodule.
As far as we need to handle database events and each database system has its own way of firing them, we put the TDataSource components on the application forms, not on the datamodule. So we can have database events on the forms instead of the data sets.
The TDataSource has the OnDataChange and OnStateChange which allow you to check what is happening with your data set, but you need to know if is there any opened database transaction, to check if the Post method was called or the data set was in "dsBrowse" state before the event has fired.
We created the InTransaction property on the Datamodule, but it suits better to the TZConnetion like TDatabase, TOraSession and other database connection components has.
What is the latest version of Zeos database components ?
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

6.5.1, but still alpha. I used them a few times and had no problems so far.
jjeffman
Senior Boarder
Senior Boarder
Posts: 56
Joined: 25.08.2005, 12:40
Location: Porto Alegre

Post by jjeffman »

I am not having any problem with this version of Zeos database components.
I am just feeling the lack of a "TZConnection::InTransaction" property, which I have implemented in the instalation I have made in my computer.
Jayme Jeffman Filho

DBA, Software Engineer
Sul Engenharia e Sistema Ltda

http://www.sulenge.com.br
Post Reply