On 1/16/07, Al Boldi <[EMAIL PROTECTED]> wrote:
Graeme Geldenhuys wrote:
> On 1/16/07, Joost van der Sluis <[EMAIL PROTECTED]> wrote:
> > I've been thinkink about using tiOPF for a project at work. But for that
> > I have to change it so that it can use SQLDB. That can't be that hard,
> > so maybe I\m gonna help you there.
>
> I've already written the persistence layer for SQLDB, but it needs to
> be refactored a bit more, because it is currently hard wired to
> Interbase/Firebird.
>
> I struggled getting the transactions unit tests to pass, and
> implemented a FBLib persistence layer to see if I did something wrong
> in building the persistence layer. FBLib worked perfectly so stuck
> with it.
Where can you get this FBLib?
And why should tiOPF be dependent on it?
Is it possible to make it optional?
tiOPF is not really dependent on FBLib (Firebird Library), but I did
enable it as one of three default persistence layers under Free
Pascal. At the time I was the only user of tiOPF with Free Pascal, so
added it as a default - I might have to remove that now.
To disable/remove it, remove the Compiler Directive (-dLINK_FBL) from
the tiOPF.lpk and tiOPFGUI.lpk compiler settings and recompile.
FBLib can be downloaded from [http://fblib.altervista.org/]
It's a wrapper for the Firebird client library and has support for the
Firebird Admin Services. Works very well in our projects.
tiOPF normally only enables persistence layers by default, it all
required DB components are included with the compiler (Delphi or Free
Pascal) as standard. I kind of broke that rule by including FBLib as
default. That is also why for example Oracle (via Direct Oracle
Access components) persistence layer is not enabled by default.
I'll remove the FBLib persistence layer as default soon and hopefully
we can enable the SQLDB layer as default (as that is included with
FPC).
Can give a link to its tar-ball?
* create a directory called 'tiOPF2'
* cd tiOPF2
* svn co --ignore-externals
https://svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk Source
For more detailed information have a look at the Lazarus wiki.
http://wiki.lazarus.freepascal.org/tiOPF
I'll find the units I had problems with and post their names in the
fpc-pascal mailing list (I think the Lazarus mailing list is a bit
off-topic).
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives