squeal-postgresql-0.9.0.0: Squeal PostgreSQL Library
Copyright(c) Eitan Chatav 2019
Maintainereitan@morphism.tech
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Squeal.PostgreSQL.Session.Oid

Contents

Description

Object identifiers are used internally by PostgreSQL as primary keys. They are needed to correctly encode statement parameters.

Synopsis

Oids

data Oid #

Instances

Instances details
Eq Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ

Methods

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

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

Ord Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ

Methods

compare :: Oid -> Oid -> Ordering #

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

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

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

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

max :: Oid -> Oid -> Oid #

min :: Oid -> Oid -> Oid #

Read Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ

Show Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ

Methods

showsPrec :: Int -> Oid -> ShowS #

show :: Oid -> String #

showList :: [Oid] -> ShowS #

Storable Oid 
Instance details

Defined in Database.PostgreSQL.LibPQ

Methods

sizeOf :: Oid -> Int #

alignment :: Oid -> Int #

peekElemOff :: Ptr Oid -> Int -> IO Oid #

pokeElemOff :: Ptr Oid -> Int -> Oid -> IO () #

peekByteOff :: Ptr b -> Int -> IO Oid #

pokeByteOff :: Ptr b -> Int -> Oid -> IO () #

peek :: Ptr Oid -> IO Oid #

poke :: Ptr Oid -> Oid -> IO () #

IsPG Oid Source #

PGint2

Instance details

Defined in Squeal.PostgreSQL.Type.PG

Associated Types

type PG Oid :: PGType Source #

FromPG Oid Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Decode

Inline Oid Source # 
Instance details

Defined in Squeal.PostgreSQL.Expression.Inline

Methods

inline :: forall (null :: PGType -> NullType). Oid -> Expr (null (PG Oid)) Source #

ToPG db Oid Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Encode

type PG Oid Source # 
Instance details

Defined in Squeal.PostgreSQL.Type.PG

type PG Oid = 'PGoid

class OidOf (db :: SchemasType) (pg :: PGType) where Source #

The Oid of a PGType

>>> :set -XTypeApplications
>>> conn <- connectdb @'[] "host=localhost port=5432 dbname=exampledb user=postgres password=postgres"
>>> runReaderT (oidOf @'[] @'PGbool) conn
Oid 16
>>> finish conn

Instances

Instances details
OidOf db 'PGoid Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtsquery Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtsvector Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGjsonb Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGjson Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGinet Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGuuid Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGinterval Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtimetz Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtime Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGdate Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtimestamptz Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtimestamp Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGbytea Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGtext Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGmoney Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGfloat8 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGfloat4 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGnumeric Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGint8 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGint4 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGint2 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db 'PGbool Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

(enums ~ DbEnums db, FindQualified "no enum found with labels:" enums labels ~ '(sch, td), KnownSymbol sch, KnownSymbol td) => OidOf db ('PGenum labels) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

(KnownSymbol sch, KnownSymbol td, rels ~ DbRelations db, FindQualified "no relation found with row:" rels row ~ '(sch, td)) => OidOf db ('PGcomposite row) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGrange 'PGdate) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGrange 'PGtimestamptz) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGrange 'PGtimestamp) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGrange 'PGnumeric) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGrange 'PGint8) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGrange 'PGint4) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGvarchar n) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOf db ('PGchar n) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db pg => OidOf db ('PGvararray (null pg)) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db pg => OidOf db ('PGfixarray dims (null pg)) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

class OidOfArray (db :: SchemasType) (pg :: PGType) where Source #

The Oid of an array

Instances

Instances details
OidOfArray db 'PGoid Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtsquery Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtsvector Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGjsonb Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGjson Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGinet Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGuuid Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGinterval Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtimetz Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtime Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGdate Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtimestamptz Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtimestamp Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGbytea Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGtext Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGmoney Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGfloat8 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGfloat4 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGnumeric Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGint8 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGint4 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGint2 Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db 'PGbool Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

(enums ~ DbEnums db, FindQualified "no enum found with labels:" enums labels ~ '(sch, td), KnownSymbol sch, KnownSymbol td) => OidOfArray db ('PGenum labels) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

(KnownSymbol sch, KnownSymbol td, rels ~ DbRelations db, FindQualified "no relation found with row:" rels row ~ '(sch, td)) => OidOfArray db ('PGcomposite row) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGrange 'PGdate) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGrange 'PGtimestamptz) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGrange 'PGtimestamp) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGrange 'PGnumeric) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGrange 'PGint8) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGrange 'PGint4) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGvarchar n) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

OidOfArray db ('PGchar n) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

class OidOfNull (db :: SchemasType) (ty :: NullType) where Source #

The Oid of a NullType

Instances

Instances details
OidOf db pg => OidOfNull db (null pg) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid

class OidOfField (db :: SchemasType) (field :: (Symbol, NullType)) where Source #

The Oid of a field

Instances

Instances details
OidOfNull db ty => OidOfField db (fld ::: ty) Source # 
Instance details

Defined in Squeal.PostgreSQL.Session.Oid