The HDBC-odbc package

[Tags: bsd3, library]

This package provides an ODBC database backend for HDBC. It is cross-platform and supports unixODBC on UnixLinuxPOSIX platforms and Microsoft ODBC on Windows. It is also the preferred way to access MySQL databases from Haskell.


[Skip to ReadMe]

Properties

Versions1.0.1.0, 1.1.3.0, 1.1.3.1, 1.1.4.0, 1.1.4.1, 1.1.4.2, 1.1.4.3, 1.1.4.4, 1.1.6.0, 2.0.0.0, 2.1.0.0, 2.2.0.0, 2.2.3.0, 2.2.3.1, 2.2.3.2, 2.3.1.0, 2.3.1.1, 2.4.0.0, 2.4.0.1
Change logNone available
Dependenciesbase (==4.*), bytestring, containers, convertible, HDBC (>=2.1.0), HUnit, mtl, old-locale, old-time, QuickCheck, testpack, time, utf8-string [details]
LicenseLGPL
CopyrightCopyright (c) 2005-2009 John Goerzen
AuthorJohn Goerzen
MaintainerJohn Goerzen <jgoerzen@complete.org>
StabilityBeta
CategoryDatabase
Home pagehttp://software.complete.org/hdbc-odbc
Executablesruntests
UploadedMon Feb 7 16:00:14 UTC 2011 by JohnGoerzen
DistributionsDebian:2.3.1.1, NixOS:2.4.0.1
Downloads5968 total (253 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefaultType
buildtestsBuild the executable to run unit testsDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for HDBC-odbc-2.2.3.2

Welcome to HDBC, Haskell Database Connectivity.

This package provides a database backend driver for ODBC.  You should
be able to use any ODBC front-end with it.

Please see HDBC itself for documentation on use.

This package provides one function in module Database.HDBC.ODBC:

{- | Connect to an ODBC server.

For information on the meaning of the passed string, please see:

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcsqldrivers.asp>

An example string is:

>"DSN=hdbctest1"

-}
connectODBC :: String -> IO Connection

DIFFERENCES FROM HDBC STANDARD
------------------------------

None known at this time.

MYSQL NOTE
----------

Important note for MySQL users:

Unless you are going to use InnoDB tables, you are strongly encouraged to set

Option = 262144

in your odbc.ini (for Unix users), or to disable transaction support in your
DSN setup for Windows users.

If you fail to do this, the MySQL ODBC driver will incorrectly state that it
supports transactions.  dbTransactionSupport will incorrectly return True.
commit and rollback will then silently fail.  This is certainly /NOT/ what you
want.  It is a bug (or misfeature) in the MySQL driver, not in HDBC.

You should ignore this advice if you are using InnoDB tables.