postgresql-simple-0.2.1.0: Mid-Level PostgreSQL client library

Maintainerleon@melding-monads.com
Safe HaskellSafe-Infered

Database.PostgreSQL.Simple.LargeObjects

Description

Support for PostgreSQL's Large Objects; see http://www.postgresql.org/docs/9.1/static/largeobjects.html for more information.

Note that Large Object File Descriptors are only valid within a single database transaction, so if you are interested in using anything beyond loCreat, loImport, loExport, and loUnlink, you will need to run the entire sequence of functions in a transaction.

Synopsis

Documentation

newtype Oid

Constructors

Oid CUInt 

data LoFd

LoFd is a Large Object (pseudo) File Descriptor. It is understood by libpq but not by operating system calls.

Instances

data SeekMode

A mode that determines the effect of hSeek hdl mode i.

Constructors

AbsoluteSeek

the position of hdl is set to i.

RelativeSeek

the position of hdl is set to offset i from the current position.

SeekFromEnd

the position of hdl is set to offset i from the end of the file.