Module
Database.PostgreSQL.Value
- Package
- purescript-postgresql-client
- Repository
- rightfold/purescript-postgresql-client
#ToSQLValue Source
class ToSQLValue a where
Convert things to SQL values.
Members
toSQLValue :: a -> Foreign
Instances
ToSQLValue Boolean
ToSQLValue Char
ToSQLValue Int
ToSQLValue Number
ToSQLValue String
(ToSQLValue a) => ToSQLValue (Array a)
(ToSQLValue a) => ToSQLValue (List a)
ToSQLValue ByteString
ToSQLValue Instant
ToSQLValue Date
ToSQLValue JSDate
(ToSQLValue a) => ToSQLValue (Maybe a)
ToSQLValue Foreign
(ToSQLValue a) => ToSQLValue (Object a)
ToSQLValue Decimal
#FromSQLValue Source
class FromSQLValue a where
Convert things from SQL values.
Members
fromSQLValue :: Foreign -> Either String a
Instances
FromSQLValue Boolean
FromSQLValue Char
FromSQLValue Int
FromSQLValue Number
FromSQLValue String
(FromSQLValue a) => FromSQLValue (Array a)
(FromSQLValue a) => FromSQLValue (List a)
FromSQLValue ByteString
FromSQLValue Instant
FromSQLValue Date
FromSQLValue JSDate
(FromSQLValue a) => FromSQLValue (Maybe a)
FromSQLValue Foreign
(FromSQLValue a) => FromSQLValue (Object a)
FromSQLValue Decimal
#instantToString Source
instantToString :: Instant -> Foreign
#unsafeIsBuffer Source
unsafeIsBuffer :: forall a. a -> Boolean