In the Readme,  you mention the type issue is less relevant to sqlite-simple than the others.<br><br>Now,  I&#39;ve not actually used SQLite myself, but I have done some reading about it.   I do understand that values of any type can be stored at any time in any column (except for the primary key,  IIRC),   but what happens to the declared type of a column when you create a table?   Is that completely ignored?   Can it be retrieved?   Is it also returned somehow with the results?<br>
<br>I mean, it may still be a good idea to be able to check that somehow.   Though this does add the complication that you still want to be able to use sqlite-simple with existing databases that don&#39;t necessarily follow the typing rules.<br>
<br>Best,<br>Leon<br><br><br><br><div class="gmail_quote">On Sat, Aug 11, 2012 at 2:39 PM, Janne Hellsten <span dir="ltr">&lt;<a href="mailto:jjhellst@gmail.com" target="_blank">jjhellst@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again!<br>
<br>
I finally found some time to work on the below idea of creating a<br>
sqlite-simple package that&#39;s modeled after postgresql-simple &amp;<br>
mysql-simple.<br>
<br>
A working prototype can be found here: <a href="https://github.com/nurpax/sqlite-simple" target="_blank">https://github.com/nurpax/sqlite-simple</a><br>
<br>
I still need to do a bit of work on it to clean things up and add a<br>
bit more functionality.  In particular, FromField instances are<br>
currently limited to only Ints and Strings - this is obviously not<br>
adequate for real use.<br>
<br>
I consider this to be ready for first release on hackage once I&#39;ve<br>
done some more testing and closed the issues on<br>
<a href="https://github.com/nurpax/sqlite-simple/issues?milestone=1&amp;state=open" target="_blank">https://github.com/nurpax/sqlite-simple/issues?milestone=1&amp;state=open</a><br>
- but of course I may have missed something obvious.<br>
<br>
Comments, concerns?  Let me know!<br>
<br>
Cheers,<br>
<br>
Janne<br>
<br>
On Wed, Aug 1, 2012 at 9:41 PM, Janne Hellsten &lt;<a href="mailto:jjhellst@gmail.com">jjhellst@gmail.com</a>&gt; wrote:<br>
&gt; Hi list,<br>
&gt;<br>
&gt; I&#39;ve been looking for better Haskell sqlite bindings for few months now.<br>
&gt;<br>
&gt; So far I&#39;ve tried or investigated the following sqlite packages:<br>
&gt;<br>
&gt; - hdbc-sqlite3<br>
&gt; - sqlite<br>
&gt; - direct-sqlite<br>
&gt;<br>
&gt; At the same time I&#39;ve played around a bit with postgresql-simple.<br>
&gt; I&#39;ve come to quite like the postgresql-simple API and would like to<br>
&gt; have a access API for sqlite.<br>
&gt;<br>
&gt; Unfortunately, all the existing sqlite bindings seem to offer a much<br>
&gt; lower level interface.<br>
&gt;<br>
&gt; I&#39;m thinking that if no *-simple style Haskell library exists for<br>
&gt; sqlite3, I&#39;d like to create one.<br>
&gt;<br>
&gt; I&#39;ve exchanged a few e-mails about this with Leon and with his help<br>
&gt; have a few ideas on how to go about it.<br>
&gt;<br>
&gt; Leon suggested that the design should be two libraries: one low-level<br>
&gt; library that can be unsafe to use directly and another medium-level<br>
&gt; package that&#39;s built on the low-level library.  The medium part would<br>
&gt; borrow pretty directly from existing *-simple packages.<br>
&gt;<br>
&gt; I dabbled a bit with my own low-level sqlite bindings but later came<br>
&gt; to realize that the direct-sqlite package<br>
&gt; (<a href="http://ireneknapp.com/software/" target="_blank">http://ireneknapp.com/software/</a>) seems to be pretty close to what I&#39;d<br>
&gt; need.  So I&#39;m thinking that could be the low-level part of<br>
&gt; sqlite-simple.<br>
&gt;<br>
&gt; Does this seem like a useful thing to build? (I know I&#39;d need it.)<br>
&gt;<br>
&gt; Does something like this already exist?<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; Janne<br>
<br>
_______________________________________________<br>
database-devel mailing list<br>
<a href="mailto:database-devel@haskell.org">database-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/database-devel" target="_blank">http://www.haskell.org/mailman/listinfo/database-devel</a><br>
</blockquote></div><br>