No idea what's required, but first I'll play with this with ZEOS controls, then I'll see what's needed to get it working with SQLDB controls. From the OP, it's all based on TDataset, so I can't see there being that many points of divergence (famous last words).
if I do get it working with both SQLDB and ZEOS, I'll email the OP with the modified source, see if he uploads it.
If he does, THEN, I'll be hooking this into my application ASAP :-) (My app uses either SQLDB or ZEOS, so I need something compatible with both...)
Mind you, getting this work with the two connection engines is only a small part. I'd have to see how well the generated SQLs work with Oracle, MySQL and MSSQL. There's sufficient difference between these flavours for me to suddenly realise I may have got too excited too quickly.
We'll see though :-)