Idris2Doc : Postgres.Data.PostgresType

Postgres.Data.PostgresType

(source)

Definitions

dataOid : Type
  Postgres Oids are just integers that have special
internal semantics within Postgres.

Totality: total
Visibility: public export
Constructor: 
MkOid : Int->Oid

Hints:
EqOid
ShowOid
oidToInt : Oid->Int
  Get an integer representation of an Oid. Probably only useful
when actually sending the Oid to Postgres for some reason.

Totality: total
Visibility: export
dataPType : Type
  Not an exhaustive list of types, just a short list of
builtins with explicit support in this library.

Totality: total
Visibility: public export
Constructors:
PInteger : PType
PDouble : PType
PChar : PType
PBoolean : PType
PDate : PType
PTime : PType
PDatetime : PType
PString : PType
PJson : PType
PUuid : PType
POid : PType
PArray : PType->PType
POther : String->PType
PUnknown : Oid->PType

Hints:
IdrCastfromto=>IdrCast (PArrayfrom) (Listto)
Monoid (PValuep)
PGCasttofrom=>PGCast (PArrayto) (Listfrom)
PGCastto (Maybefrom) =>PGCasttofrom
Semigroup (PValuep)
ShowPType
Show (PColTypet)
dataNullability : Type
Totality: total
Visibility: public export
Constructors:
Nullable : Nullability
NonNullable : Nullability
dataPColType : PType->Type
Totality: total
Visibility: public export
Constructor: 
MkColType : Nullability-> (pt : PType) ->PColTypept

Hint: 
Show (PColTypet)
pType : PColTypet->PType
Totality: total
Visibility: public export
nullable : PColTypet->Bool
Totality: total
Visibility: public export
makeNullable : PColTypet->PColTypet
Totality: total
Visibility: public export
dataFormatCode : Type
Totality: total
Visibility: public export
Constructors:
Text : FormatCode
Binary : FormatCode

Hint: 
ShowFormatCode
dataTypeDictionary : Type
Totality: total
Visibility: export
Constructor: 
MkTypeDictionary : List (Oid, PType) ->TypeDictionary

Hint: 
ShowTypeDictionary
.types : TypeDictionary->List (Oid, PType)
  A sorted list of type tuples (pairs of Oid and type).
Sorted by Oid.

Totality: total
Visibility: export
types : TypeDictionary->List (Oid, PType)
  A sorted list of type tuples (pairs of Oid and type).
Sorted by Oid.

Totality: total
Visibility: export
empty : TypeDictionary
Totality: total
Visibility: export
typeDictionary : List (Oid, PType) ->TypeDictionary
  Create a dictionary of Postgres types. The dictionary is
sorted by Oid for future lookup.

Totality: total
Visibility: export
lookup : Oid->TypeDictionary->PType
  Find the Postgres Type the given Oid refers to, or
admit defeat via PUnknown.

Totality: total
Visibility: export