Re: Storage API

2013-05-02 Thread Bastien Nocera
On Wed, 2013-05-01 at 12:31 -0400, Colin Walters wrote: > On Wed, 2013-05-01 at 16:31 +0200, Bastien Nocera wrote: > > Dumping > > serialised Javascript objects to the filesystem isn't really elegant > > either. > > It isn't, but for what it's worth that's what I do currently: > https://git.gnome

Re: Storage API

2013-05-02 Thread Bastien Nocera
On Thu, 2013-05-02 at 11:29 +0200, Murray Cumming wrote: > On Wed, 2013-05-01 at 16:31 +0200, Bastien Nocera wrote: > > Heya, > > > > I've started writing a simple database-like application in Javascript > > using GTK+, and I wondered about what to use for storage. > > > > gjs currently doesn't h

Re: Storage API

2013-05-02 Thread Murray Cumming
On Wed, 2013-05-01 at 16:31 +0200, Bastien Nocera wrote: > Heya, > > I've started writing a simple database-like application in Javascript > using GTK+, and I wondered about what to use for storage. > > gjs currently doesn't have bindings for SQLite, and using intermediate > bindings like libgda

Re: Storage API

2013-05-01 Thread Emmanuele Bassi
hi Colin; On 1 May 2013 09:31, Colin Walters wrote: > On Wed, 2013-05-01 at 16:31 +0200, Bastien Nocera wrote: >> Dumping >> serialised Javascript objects to the filesystem isn't really elegant >> either. > > It isn't, but for what it's worth that's what I do currently: > https://git.gnome.org/b

Re: Storage API

2013-05-01 Thread Colin Walters
On Wed, 2013-05-01 at 16:31 +0200, Bastien Nocera wrote: > Dumping > serialised Javascript objects to the filesystem isn't really elegant > either. It isn't, but for what it's worth that's what I do currently: https://git.gnome.org/browse/gnome-ostree/tree/src/js/jsonutil.js But this app is basi

Storage API

2013-05-01 Thread Bastien Nocera
Heya, I've started writing a simple database-like application in Javascript using GTK+, and I wondered about what to use for storage. gjs currently doesn't have bindings for SQLite, and using intermediate bindings like libgda I found too low-level (provider-specific SQL, the need to write SQL and