Idris2Doc : Postgres.Data.PostgresValue

Postgres.Data.PostgresValue

(source)

Definitions

dataPValue : PType->Type
Totality: total
Visibility: public export
Constructor: 
Raw : String->PValuep

Hints:
Cast (PValuePString) String
Monoid (PValuep)
Semigroup (PValuep)
rawString : PValuet->String
Visibility: export
interfaceIdrCast : PType->Type->Type
  Represents an ability to cast a Postgres type of value (pt) to
a particular Idris type (ty).
@param pt A Postgres type to cast from.
@param ty An Idris type to cast to.

Parameters: pt, ty
Methods:
toIdris : PValuept->Maybety

Implementations:
IdrCastPIntegerInt
IdrCastPIntegerInteger
IdrCastPIntegerDouble
IdrCastPDoubleDouble
IdrCastPCharChar
IdrCastPBooleanBool
IdrCastPStringString
IdrCastPJsonJSON
IdrCastPOidInteger
IdrCastfromto=>IdrCast (PArrayfrom) (Listto)
toIdris : IdrCastptty=>PValuept->Maybety
Visibility: public export
interfacePGCast : PType->Type->Type
Parameters: pt, ty
Methods:
toPostgres : ty->PValuept

Implementations:
PGCastPIntegerInt
PGCastPIntegerInteger
PGCastPIntegerNat
PGCastPDoubleDouble
PGCastPDoubleInteger
PGCastPDoubleInt
PGCastPCharChar
PGCastPBooleanBool
PGCastPStringString
PGCastPJsonJSON
PGCastPOidInteger
PGCasttofrom=>PGCast (PArrayto) (Listfrom)
PGCastto (Maybefrom) =>PGCasttofrom
toPostgres : PGCastptty=>ty->PValuept
Visibility: public export
interfaceDBStringCast : Type->Type
Parameters: a
Methods:
dbCast : String->EitherStringa
  Cast the string representation of a database value to
the given Idris type if possible or provide an error
message.

Implementations:
DBStringCastInteger
DBStringCastDouble
DBStringCastChar
DBStringCastBool
DBStringCastString
DBStringCastJSON
DBStringCasta=>DBStringCast (Lista)
dbCast : DBStringCasta=>String->EitherStringa
  Cast the string representation of a database value to
the given Idris type if possible or provide an error
message.

Visibility: export
dataCastable : Type->Type
Totality: total
Visibility: public export
Constructors:
Cast : DBStringCastty=>Castablety
CastMaybe : DBStringCastty=>Castable (Maybety)
asDefaultType : Castablet->MaybeString->EitherStringt
  Turn the string coming from Postgres into its default Idris type.

You can create your own `DBStringCast` implementations if you wish to
be able to parse additional types using this library's builtin functions.

Visibility: public export