Re: [Vala] Is there any way to deserialize something into object in vala?
- From: "marcin saepia net" <marcin saepia net>
- To: Daniel Espinosa <esodan gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Is there any way to deserialize something into object in vala?
- Date: Thu, 22 Mar 2012 09:15:33 +0100
thank you for your suggestion. I was considering GDA but as
performance is quite important in my project, I wanted to recreate
minimal subset of functionality of database abstraction layer by
myself and do that in Vala.
GDA is written in C, so it propably uses the same macros that
json-glib does. But I still wonder if it is possible to do that in
2012/3/22 Daniel Espinosa <esodan gmail com>:
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
Vala extensions are available from git.gnome.org/libgda
El mar 20, 2012 7:04 a.m., "marcin saepia net" <marcin saepia net> escribió:
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?
vala-list mailing list
vala-list gnome org
] [Thread Prev