May you want to test GDA's Vala extensions. They provides a Record object that could be used as a base class for your objects and save all your properties directly to a database. Check out samples/vala code.
Vala extensions are available from git.gnome.org/libgda El mar 20, 2012 7:04 a.m., "[email protected]" <[email protected]> escribió: > Hi, > > I need to create a sort of abstraction layer between the database and > my vala app. > > It would be great if it was possible to interate over my class > properties, read they type etc. and dynamically map fields from the DB > to the properties. > > Is there any way to do that? > > I know that it is possible within GObject, as json-glib has that > functionality, but is it possible without access to low-level C > GLib/GObject macros? Only in Vala? > > m. > _______________________________________________ > vala-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/vala-list >
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
