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