[fpc-pascal] Proposed FPC database example code: request for testing
reinierolislagers at gmail.com
Fri May 25 11:14:14 CEST 2012
On 25-5-2012 10:36, Michael Van Canneyt wrote:
Thanks for the quick and helpful response, Michael.
> Interesting example. You forgot the readme in the zip ?
I added it to the bottom of the post instead ;)
> I'm willing to include it as an example in fcl-db, but then you'd need
> to make some improvements first:
> - Choose a different default connection type on non-windows OSes.
> MS-SQL does not make sense. I'd go for firebird, but I suggest
> you make this selectable through a define.
Firebird sounds good, define... why not (though it seems like a bit of
> - Clean up the code so it is separated out in a unit, not in the program
> file ?
Ok, though I don't see that much advantage to it unless you want to
separate the connection/console functionality out into a class... sorry
object that can be instantiated. Which does make sense.
> - Why not use the TSQLConnector component ? You repeat what it does
> already ?
Wasn't aware of its existence... or forgot about it... ;) Looks like
pasql could do with a rewrite then...
More information about the fpc-pascal