<div dir="ltr">Sorry I didn&#39;t send it earlier, it must have slipped my mind.<br><br><div class="gmail_quote">On Sun, Jul 25, 2010 at 3:07 AM, Dan Knapp <span dir="ltr">&lt;<a href="mailto:dankna@gmail.com">dankna@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;">I am the author of direct-sqlite, and I thank you for the bug report.<br>
I&#39;ll be fixing this as soon as I&#39;m able.  It&#39;s always nice to hear<br>
about people using my code!<br>
<div><div></div><div class="h5"><br>
<br>
On Wed, Jul 21, 2010 at 2:10 AM, Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jul 21, 2010 at 8:59 AM, Gour &lt;<a href="mailto:gour@gour-nitai.com">gour@gour-nitai.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Wed, 21 Jul 2010 08:06:49 +0300<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt; &quot;Michael&quot; == Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Michael&gt; For the sqlite backend for persistent, I took direct-sqlite<br>
&gt;&gt; Michael&gt; and modified it slightly. I have a long history of using the<br>
&gt;&gt; Michael&gt; sqlite3 C API, so the API felt very familiar to me.<br>
&gt;&gt;<br>
&gt;&gt; So, it seems you&#39;re satisfiew with direct-sqlite?<br>
&gt;&gt;<br>
&gt;&gt; What is missing in 1st package (Galois bindings)?<br>
&gt;&gt;<br>
&gt; I didn&#39;t investigate it, I would imagine it&#39;s pretty complete if Galois<br>
&gt; wrote it. I stuck with direct-sqlite just because it was so incredibly<br>
&gt; simple (single file, ~15 functions).<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; btw, after some research, I&#39;ve concluded that NOSQL (Redis, MongoDB)<br>
&gt;&gt; are not good solutions in our use-case since we want to have extensive<br>
&gt;&gt; querying support and using sqlite3 with SQL seems better option.<br>
&gt;&gt;<br>
&gt; That&#39;s why I&#39;m sticking with SQL for my current project.<br>
&gt;&gt;<br>
&gt;&gt; Michael&gt; If I&#39;m not mistaken, direct-sqlite does not build as-is on<br>
&gt;&gt; Michael&gt; hackage because it&#39;s missing a reference to the C library.<br>
&gt;&gt;<br>
&gt;&gt; Hmm...you&#39;re right.<br>
&gt;&gt;<br>
&gt;&gt; Apparently Archlinux package built OK; but loading it into ghci gives:<br>
&gt;&gt;<br>
&gt;&gt; ghc: /usr/lib/direct-sqlite-1.0/ghc-6.12.1/HSdirect-sqlite-1.0.o:<br>
&gt;&gt; unknown symbol `sqlite3_column_blob&#39;<br>
&gt;&gt;<br>
&gt;&gt; Thank you.<br>
&gt;&gt;<br>
&gt;&gt; Michael&gt; However, if you take my approach and just include the code in<br>
&gt;&gt; Michael&gt; your library, you can fix that easily enough.<br>
&gt;&gt;<br>
&gt;&gt; It looks it&#39;s the problem with package&#39;s cabal file...<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; True, it&#39;s a very simple fix. In fact, you can just include the sqlite<br>
&gt; amalgamation file with the code and not worry about library dependencies.<br>
&gt; Michael<br>
</div></div>&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Dan Knapp<br>
&quot;An infallible method of conciliating a tiger is to allow oneself to<br>
be devoured.&quot; (Konrad Adenauer)<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</font></blockquote></div><br></div>