| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hasura.Backends.Postgres.SQL.Value
Description
Postgres SQL Value
Deals with Postgres scalar values, converting them to and from Text, and to
JSON Value.
Documentation
Constructors
| RasterWKB | |
Fields
| |
data PGScalarValue Source #
Constructors
| PGValInteger Int32 | |
| PGValSmallInt Int16 | |
| PGValBigInt Int64 | |
| PGValFloat Float | |
| PGValDouble Double | |
| PGValNumeric Scientific | |
| PGValMoney Scientific | |
| PGValBoolean Bool | |
| PGValChar Char | |
| PGValVarchar Text | |
| PGValText Text | |
| PGValCitext Text | |
| PGValDate Day | |
| PGValTimeStamp LocalTime | |
| PGValTimeStampTZ UTCTime | |
| PGValTimeTZ ZonedTimeOfDay | |
| PGNull PGScalarType | |
| PGValJSON JSON | |
| PGValJSONB JSONB | |
| PGValGeo GeometryWithCRS | |
| PGValRaster RasterWKB | |
| PGValUUID UUID | |
| PGValLtree Ltree | |
| PGValLquery Text | |
| PGValLtxtquery Text | |
| PGValUnknown Text | |
| PGValArray [PGScalarValue] |
Instances
| Eq PGScalarValue Source # | |
Defined in Hasura.Backends.Postgres.SQL.Value Methods (==) :: PGScalarValue -> PGScalarValue -> Bool # (/=) :: PGScalarValue -> PGScalarValue -> Bool # | |
| Show PGScalarValue Source # | |
Defined in Hasura.Backends.Postgres.SQL.Value Methods showsPrec :: Int -> PGScalarValue -> ShowS # show :: PGScalarValue -> String # showList :: [PGScalarValue] -> ShowS # | |
pgScalarValueToJson :: PGScalarValue -> Value Source #
textToScalarValue :: Maybe Text -> PGScalarValue Source #
withConstructorFn :: PGScalarType -> SQLExp -> SQLExp Source #
withScalarTypeAnn :: PGScalarType -> SQLExp -> SQLExp Source #
withTypeAnn :: CollectableType PGScalarType -> SQLExp -> SQLExp Source #
scientificToInteger :: (Integral i, Bounded i) => Scientific -> Parser i Source #
scientificToFloat :: RealFloat f => Scientific -> Parser f Source #
parsePGValue :: PGScalarType -> Value -> Parser PGScalarValue Source #
binEncoder :: PGScalarValue -> PrepArg Source #
formatTimestamp :: FormatTime t => t -> Text Source #
txtEncoder :: PGScalarValue -> SQLExp Source #
buildArrayLiteral :: [PGScalarValue] -> Text Source #
toPrepParam :: Int -> PGScalarType -> SQLExp Source #