[Haskell] Re: ANN: HDBC (Haskell Database Connectivity)

John Goerzen jgoerzen at complete.org
Wed Jan 4 14:04:40 EST 2006

On 2006-01-04, John Goerzen <jgoerzen at complete.org> wrote:
> It's probably the same amount of coding either way:

[hsql-esque example]

> fetch sth
> h1 <- get sth "col1"
> h2 <- get sth "col2"
> func h1 h2

I should add that yet another option with HDBC is:

l colname colmap = Map.lookup colname colmap >>= fromSql

row <- fetchRowMap sth
h1 <- l "col1" row
h2 <- l "col2" row
func h1 h2

So I think you should be able to use HDBC as-is in that usage scenario
pretty easily.

I could add a function like "l" to HDBC if people think it would be
generically useful.

-- John

More information about the Haskell mailing list