In FreeTrade 2, I've abstracted the database code out so that there's no SQL
in any screen or action module.  There are new database modules that are
collected in their own directory.  So, if someone takes on the task, we can
add Postgres support just by re-writing the database modules.  I didn't go
down the path of making a doquery() function because then you have to make
sacrifices when writing your queries.  I want to be able to optimize the
code for a particular database engine, especially when they all do sequences
differently.

So, the bad news is that I still have $DatabaseLink in all the database
modules.  And there are lots of if statements trying to find errors.  But
the good news is that you won't find any code like this in the screen
modules or action modules.  And that does make the code a lot easier to
follow because it's a lot shorter.

The biggest problem with FreeTrade 2 is that I'm the only person working on
it and I don't have much time lately.  If anyone has lots of time to devote
to it, it's really close to being useable.  So speak up if you want to
contribute.

Leon



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to