Re: [gnome-db] Drop Table... How to?



On 9/15/06, Diego Zuccato <diego otello alma unibo it> wrote:
Vivien Malerba wrote:
> Now about the XML file, there is no documentation about it but there
> is a DTD and the sytax is very simple. For example:
What I really don't understand is "why XML?".

As I mentionned it's a convenient way of doing things till there I
implement the proper API to do it more easily (which I'm currently
doing BTW). XML is just a convenient way to storing and loading data
in a GdaServerOperation object.

IMVHO converting some binary data structure to text, then back to binary
is quite an inefficient way to comunicate inside a library.

I'd prefer a lot something based on GObject, so I can handle directly
the objects. Like in Gtk when you have to build a treeview, just to give
an idea of what I mean.

In pseudo-OO:

db=new Db(provider, host, port, ...);
newtable=db.table.new("tablename");
newtable.column.new("col1", G_TYPE_INT); // auto-conversion from gtypes
newtable.column.new("col2", "sequence"); // user-supplied type
newtable.index.new("idx", "col1", "col2", -1);
newtable.commit(); // Actually execute "CREATE TABLE"

Yes, I agree with that, Daniel?

Cheers,

Vivien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]