Re: [gnome-db] convert to gdasqlbuilder
Vivien Malerba <[email protected]>
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <[email protected]> |
On 21 July 2010 18:06, Andrea Zagli <[email protected]> wrote: > is there a way to convert an sql string or a gdasqlstatement to a > gdasqlbuilder? The short answer is no. The longer answer is that you can import SQL expressions in a GdaSqlBuilder using gda_sql_builder_import_expression(), and you can obtain an SQL expression from a GdaSqlStatement (which itself can be obtained by parsing some SQL) and analysing the part you want, but you'll have to move around a memory tree, see the doc about the GdaSqlStatement structure. Regards, Vivien