postgresql-simple-0.7.0.0: Mid-Level PostgreSQL client library
Copyright(c) 2011-2012 Leon P Smith
LicenseBSD3
Maintainerleon@melding-monads.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.PostgreSQL.Simple.LargeObjects

Description

Support for PostgreSQL's Large Objects; see https://www.postgresql.org/docs/9.5/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, loCreate, and loUnlink, you will need to run the entire sequence of functions in a transaction. As loImport and loExport are simply C functions that call loCreat, loOpen, loRead, and loWrite, and do not perform any transaction handling themselves, they also need to be wrapped in an explicit transaction.

Synopsis

Documentation

newtype Oid Source #

Constructors

Oid CUInt 

Instances

Instances details
Storable Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ.Oid

Read Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ.Oid

Show Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ.Oid

Eq Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ.Oid

Methods

(==) :: Oid -> Oid -> Bool Source #

(/=) :: Oid -> Oid -> Bool Source #

Ord Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ.Oid

Methods

compare :: Oid -> Oid -> Ordering Source #

(<) :: Oid -> Oid -> Bool Source #

(<=) :: Oid -> Oid -> Bool Source #

(>) :: Oid -> Oid -> Bool Source #

(>=) :: Oid -> Oid -> Bool Source #

max :: Oid -> Oid -> Oid Source #

min :: Oid -> Oid -> Oid Source #

FromField Oid Source #

oid

Instance details

Defined in Database.PostgreSQL.Simple.FromField

ToField Oid Source # 
Instance details

Defined in Database.PostgreSQL.Simple.ToField

Methods

toField :: Oid -> Action Source #

data LoFd Source #

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

Instances

Instances details
Show LoFd 
Instance details

Defined in Database.PostgreSQL.LibPQ

Eq LoFd 
Instance details

Defined in Database.PostgreSQL.LibPQ

Methods

(==) :: LoFd -> LoFd -> Bool Source #

(/=) :: LoFd -> LoFd -> Bool Source #

Ord LoFd 
Instance details

Defined in Database.PostgreSQL.LibPQ

data IOMode Source #

Instances

Instances details
Enum IOMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.IOMode

Ix IOMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.IOMode

Read IOMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.IOMode

Show IOMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.IOMode

Eq IOMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.IOMode

Ord IOMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.IOMode

ToCInt IOMode 
Instance details

Defined in Database.PostgreSQL.LibPQ.Enums

Methods

toCInt :: IOMode -> CInt

data SeekMode Source #

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.

Instances

Instances details
Enum SeekMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.Device

Ix SeekMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.Device

Read SeekMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.Device

Show SeekMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.Device

Eq SeekMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.Device

Ord SeekMode

Since: base-4.2.0.0

Instance details

Defined in GHC.IO.Device

ToCInt SeekMode 
Instance details

Defined in Database.PostgreSQL.LibPQ.Enums

Methods

toCInt :: SeekMode -> CInt