[Haskell-cafe] MySQL and HDBC?

Yitzchak Gale gale at sefer.org
Sun Jan 25 07:25:28 EST 2009


Duncan Coutts wrote:
>> This was uploaded to hackage yesterday:
>> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HDBC-mysql-0.1

This is wonderful news! Whatever we might say about MySQL,
it is so ubiquitous that this driver is really important for Haskell.
Chris, please keep us up-to-date with your progress.

Chris Waterson wrote:
> I would very much appreciate feedback.
> I'm still working with John Goerzen (who has been extremely helpful) to iron
> our some details, see [1] for a list of issues that you should be aware of
> before you start doing anything too serious...

Well whatever John says will obviously take priority.
But the following two points that you list are covered in the
API docs on the main Haddock page for HDBC:

http://software.complete.org/static/hdbc/doc/Database-HDBC.html

o Transactions - if a connection does not support transactions,
dbTransactionSupport should return False, and commit and rollback
should raise errors. (SqlError I suppose?) Not warnings.

o Threading - see the section at the bottom of the Haddock page
for a nice specification of what the driver needs and does not need
to support.

Also -

o Non-ASCIIText - OK for now, but MySQL has significant
support for Unicode and encodings, so that should be on
the to-do list.

All of the rest of your to-do items sound great.

Thanks,
Yitz


More information about the Haskell-Cafe mailing list