haskelldb-hdbc-postgresql-2.1.2/0000755000000000000000000000000012042267650014736 5ustar0000000000000000haskelldb-hdbc-postgresql-2.1.2/Setup.hs0000644000000000000000000000010512042267650016366 0ustar0000000000000000#!/usr/bin/env runghc import Distribution.Simple main = defaultMain haskelldb-hdbc-postgresql-2.1.2/LICENSE0000644000000000000000000000307512042267650015750 0ustar0000000000000000Copyright (c) 1999 Daan Leijen, daan@cs.uu.nl Copyright (c) 2003-2004 The HaskellDB development team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the names of the copyright holders nor the names of the contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. haskelldb-hdbc-postgresql-2.1.2/haskelldb-hdbc-postgresql.cabal0000644000000000000000000000247512042267650022762 0ustar0000000000000000Name: haskelldb-hdbc-postgresql Version: 2.1.2 Cabal-version: >= 1.6 Build-type: Simple Homepage: https://github.com/m4dc4p/haskelldb Copyright: The authors Maintainer: haskelldb-users@lists.sourceforge.net Author: Daan Leijen, Conny Andersson, Martin Andersson, Mary Bergman, Victor Blomqvist, Bjorn Bringert, Anders Hockersten, Torbjorn Martin, Jeremy Shaw License: BSD3 License-file: LICENSE Synopsis: HaskellDB support for the HDBC PostgreSQL driver. Description: HaskellDB requires this driver if HDBC will be used to connect to a PostgreSQL database. Category: Database Library Build-depends: mtl >= 1 && < 3, haskelldb >= 2 && < 3, haskelldb-hdbc >= 2 && < 3, HDBC >= 2 && < 3, HDBC-postgresql >= 2 && < 3, base >= 3 && < 5 Exposed-Modules: Database.HaskellDB.HDBC.PostgreSQL ghc-options: -fwarn-incomplete-patterns -- Note: Extra library and include directories must be passed on commandline: -- cabal install --extra-include-dirs="F:\Program Files\PostgreSQL\8.4\include" --extra-include-dirs="F:\Program Files\PostgreSQL\8.4\include\server" --extra-lib-dirs="F:\Program Files\PostgreSQL\8.4\bin" Executable DBDirect-hdbc-postgresql Main-is: DBDirect.hs Include-dirs: . Extra-Libraries: pq Source-repository head Type: git Location: https://github.com/m4dc4p/haskelldb haskelldb-hdbc-postgresql-2.1.2/DBDirect.hs0000644000000000000000000000016312042267650016712 0ustar0000000000000000import Database.HaskellDB.HDBC.PostgreSQL import Database.HaskellDB.DBDirect main :: IO () main = dbdirect driver haskelldb-hdbc-postgresql-2.1.2/Database/0000755000000000000000000000000012042267650016442 5ustar0000000000000000haskelldb-hdbc-postgresql-2.1.2/Database/HaskellDB/0000755000000000000000000000000012042267650020233 5ustar0000000000000000haskelldb-hdbc-postgresql-2.1.2/Database/HaskellDB/HDBC/0000755000000000000000000000000012042267650020733 5ustar0000000000000000haskelldb-hdbc-postgresql-2.1.2/Database/HaskellDB/HDBC/PostgreSQL.hs0000644000000000000000000000235012042267650023272 0ustar0000000000000000----------------------------------------------------------- -- | -- Module : Database.HaskellDB.HDBC.PostgreSQL -- Copyright : HWT Group (c) 2003, Bjorn Bringert (c) 2005 -- License : BSD-style -- -- Maintainer : haskelldb-users@lists.sourceforge.net -- Stability : experimental -- Portability : portable -- ----------------------------------------------------------- module Database.HaskellDB.HDBC.PostgreSQL ( postgresqlConnect, DriverInterface(..), driver ) where import Database.HaskellDB.Database import Database.HaskellDB.HDBC import Database.HaskellDB.DriverAPI import Database.HaskellDB.Sql.PostgreSQL import Database.HDBC.PostgreSQL (connectPostgreSQL) postgresqlConnect :: MonadIO m => [(String,String)] -> (Database -> m a) -> m a postgresqlConnect opts = hdbcConnect generator (connectPostgreSQL conninfo) where conninfo = unwords [ k ++ "=" ++ v | (k,v) <- opts] -- | This driver passes its options through to HDBC. -- HDBC refers to -- -- for the meaning of the options. driver :: DriverInterface driver = defaultdriver { connect = postgresqlConnect , requiredOptions = [] }