Takusen-0.7: Database library with left-fold interface, for PostgreSQL, Oracle, SQLite, ODBC.

Portabilitynon-portable
Stabilityexperimental
Maintaineroleg@pobox.com, alistair@abayley.org

Database.PostgreSQL.PGFunctions

Description

Simple wrappers for PostgreSQL functions (FFI) plus middle-level wrappers (in the second part of this file)

Synopsis

Documentation

data DBHandleStruct Source

Constructors

PGconn 

data StmtStruct Source

Constructors

PGresult 

type Void = ()Source

catchPG :: IO a -> (PGException -> IO a) -> IO aSource

throwPG :: Integral a => a -> String -> anySource

execPreparedCommand :: DBHandle -> String -> [PGBindVal] -> IO (String, String, Oid)Source

This is for commands, as opposed to queries. The query equivalent of execPreparedCommand is stmtExec.

colValPtr :: ResultSetHandle -> Int -> Int -> IO (Ptr Word8)Source

Column numbers are zero-indexed, so subtract one from given index (we present a one-indexed interface). So are the row numbers.