/usr/share/doc/libghc-hdbc-odbc-doc/html/HDBC-odbc.txt is in libghc-hdbc-odbc-doc 2.3.1.1-8build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | ODBC driver for HDBC
--
-- This package provides an ODBC database backend for HDBC. It is
-- cross-platform and supports unixODBC on Unix<i>Linux</i>POSIX
-- platforms and Microsoft ODBC on Windows. It is also the preferred way
-- to access MySQL databases from Haskell.
@package HDBC-odbc
@version 2.3.1.1
-- | HDBC driver interface for ODBC 3.x
--
-- Written by John Goerzen, jgoerzen@complete.org
module Database.HDBC.ODBC
-- | Connect to an ODBC server.
--
-- For information on the meaning of the passed string, please see:
--
-- <a>http://msdn2.microsoft.com/en-us/library/ms715433(VS.85).aspx</a>
--
-- An example string is:
--
-- <pre>
-- "DSN=hdbctest1"
-- </pre>
--
-- This, and all other functions that use ODBC directly or indirectly,
-- can raise SqlErrors just like other HDBC backends. The seErrorMsg
-- field is specified as a String in HDBC. ODBC specifies this data as a
-- list of strings. Therefore, this driver uses show on the data from
-- ODBC. For friendly display, or handling of individual component
-- messages in your code, you can use read on the seErrorMsg field in a
-- context that expects <tt>[String]</tt>.
--
-- Important note for MySQL users:
--
-- Unless you are going to use InnoDB tables, you are strongly encouraged
-- to set
--
-- <pre>
-- Option = 262144
-- </pre>
--
-- 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 <i>NOT</i> 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.
connectODBC :: String -> IO Connection
data Connection
getQueryInfo :: Connection -> String -> IO ([SqlColDesc], [(String, SqlColDesc)])
|