Re: [gnome-db] Alternative to "gda_prepare_create_table" not using variable arguments ?

Vivien Malerba <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
On 29 June 2010 22:12, Thomas Bollmeier <[email protected]> wrote:
> Hi,
>
> I currently work on a small application that has defined its own interface
> for data accesses. To make use of the gnome-db functionality I have written
> an adapter to the libgda API.
> One of the interface methods creates a table from some meta data. Actually I
> would like to delegate the call to the convenience function
> "gda_prepare_create_table". However the variable arguments mechanism makes
> this impossible since the column names, types and attributes are only known
> at runtime. Though I was able to work around this by using the
> "gda_server_operation_set_value_at" function this is quite a tedeous
> approach. So my question is: Is there any convenience function similar to
> "gda_prepare_create_table" which could be called without using varargs?

No, there is not: the gda_prepare_create_table() and associated
similar functions are for a quick and easy usage of Libgda's basic
tasks, but for a better control, you'll have to use the
GdaServerOperation objects direclty. To simplify this, you can use the
actual implementation of gda_prepare_create_table() as a starting
point.

Regards,

Vivien
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.