Version française
Home     About     Download     Resources     Contact us    
Browse thread
Persistent storage and stability of Marshal?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Weimer <fw@d...>
Subject: Re: [Caml-list] Persistent storage and stability of Marshal?
* David MENTRE:

> Hello,
>
> Florian Weimer <fw@deneb.enyo.de> writes:
>
>> Have a look at SQLite.  I like it a lot.  During the past couple of
>> months, even a few Ocaml bindings have sprung into existence.
>
> Yes, I looked at it through Dbi[1]. There is however an issue: it seems
> that everything is stored as a string in an SQLite base. Returned data
> after Dbi query are typed as string.
>
> It might be an issue with Dbi itself (I haven't looked to the SQLite
> binding themselves) but after looking at SQLite documentation, it does
> not seem to be the case[2].

It's got manifestant types.  There are strings, integers, reals and
BLOBs (and NULL, of course).  You need a binding which stores integers
as integers, and not as strings, though.  SQLite mostly ignores column
types and uses on;y the type of the value you insert into the
database.