HDBC-postgresql

[ bsd3, database, library ] [ Propose Tags ] [ Report a vulnerability ]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.1.0, 1.1.3.0, 1.1.4.0, 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.2.3.3, 2.3.2.0, 2.3.2.1, 2.3.2.2, 2.3.2.3, 2.3.2.4, 2.3.2.5, 2.3.2.6, 2.3.2.7, 2.3.2.8, 2.4.0.0, 2.5.0.0, 2.5.0.1
Dependencies base, HDBC (>=1.0.0), mtl, parsec [details]
License LicenseRef-LGPL
Copyright Copyright (c) 2005-2006 John Goerzen
Author
Maintainer John Goerzen <jgoerzen@complete.org>
Uploaded by IsaacJones at 2006-09-24T19:15:00Z
Distributions Debian:2.3.2.7, NixOS:2.5.0.1
Reverse Dependencies 11 direct, 48 indirect [details]
Downloads 27037 total (62 in the last 30 days)
Rating 1.25 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for HDBC-postgresql-1.0.1.0

[back to package description]
Welcome to HDBC, Haskell Database Connectivity. This package provides a database backend driver for PostgreSQL. Please see HDBC itself for documentation on use. If you don't already have it, you can browse this documentation at http://darcs.complete.org/hdbc/doc/index.html. This package provides one function in module Database.HDBC.PostgreSQL: {- | Connect to a PostgreSQL server. See <http://www.postgresql.org/docs/8.1/static/libpq.html#LIBPQ-CONNECT> for the meaning of the connection string. -} connectPostgreSQL :: String -> IO Connection An example would be: dbh <- connectPostgreSQL "host=localhost dbname=testdb user=foo" DIFFERENCES FROM HDBC STANDARD ------------------------------ None known at this time. PREREQUISITES ------------- Before installing this package, you'll need to have HDBC 0.99.0 or above installed. You can download HDBC from http://quux.org/devel/hdbc. You'll need either GHC 6.4.1 or above, or Hugs 2005xx or above. If you're using Hugs, you'll also need cpphs (see http://www.cs.york.ac.uk/fp/cpphs/ if you don't already have it). INSTALLATION ------------ The steps to install are: 1) Examine HDBC-postgresql.cabal and edit the include-dirs line to point to your local PostgreSQL installation. If necessary, uncomment and edit the extra-lib-dirs line to point to your local PostgreSQL installation. 2) ghc --make -o setup Setup.lhs 3) ./setup configure 4) ./setup build 5) ./setup install (as root) If you're on Windows, you can omit the leading "./". USAGE ----- To use with hugs, you'll want to use hugs -98. To use with GHC, you'll want to use: -package HDBC -package HDBC-postgresql Or, with Cabal, use: Build-Depends: HDBC>=0.99.0, HDBC-postgresql -- John Goerzen December 2005