Module
Nonbili.Postgres.Class
- Package
- purescript-nonbili-postgres
- Repository
- nonbili/purescript-nonbili-postgres
#ToQueryParams Source
class ToQueryParams a where
Query params can be:
unit
- no paramArray a
- an array of params with the same typeTuple a b
- an array of params with different types
All params are serialized to Json
when sending through FFI.
Members
toQueryParams :: a -> Array Json
Instances
ToQueryParams Unit
(EncodeJson a) => ToQueryParams (Array a)
(EncodeJson a, ToQueryParams (Tuple b nested)) => ToQueryParams (Tuple a (Tuple b nested))
(EncodeJson a, EncodeJson b) => ToQueryParams (Tuple a b)