get the SQL to be executed
Ivano Luberti <[email protected]> Wed, 18 Jan 2012 17:31:05 +0100
| Newsgroups | gmane.comp.jakarta.turbine.torque.user |
|---|---|
| Message-ID | <[email protected]> |
Hello all, is there a way in Torque to get the SQL that is sent to the DB. I have to generate a txt file where I save queries basically INSERT statements of long records. I was thinking of create the Torque classes, populate the objects with data that I get from a local instance of the DB and then, instead of using a save command, get the SQL that would be executed and store it in a file. Alternatively I could use this: http://openhms.sourceforge.net/sqlbuilder/ but has dependencies that requires GPL license and I would avoid in this case that kind of license. -- ================================================== dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it ==================================================