Re: [gnome-db] New gda_parse_string convenient function

Murray Cumming <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <1276433702.15135.91.camel@murrayc-x61>
On Wed, 2010-06-09 at 20:21 -0500, Daniel Espinosa wrote:
> Please find attached a new gda_parse_string convenient function. I'm
> using in some code and I think any buddy needs to parse a SQL command
> string and get its parameters all the time, this function helps on it.

gda_parse_string() is an awfully generic name for this. Surely it should
at least mention sql in the name.

But all of these "easy" functions really need to be moved into their
appropriate classes. They currently break object-orientation completely
and unnecessarily.

For instance, this convenience function should probably be
gda_sql_parser_parse_string_for_connection() or
gda_connection_parse_sql_string().


-- 
[email protected]
www.murrayc.com
www.openismus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.