Module
Jajanmen
- Package
- purescript-jajanmen
- Repository
- justinwoo/purescript-jajanmen
#queryDB Source
queryDB :: forall params query. IsSymbol query => ExtractParams query params => DBConnection -> SProxy query -> Record params -> Aff Foreign
type safe querying using a query symbol with $name params,
#ExtractParams Source
class ExtractParams (query :: Symbol) (params :: Row Type) | query -> params
Instances
(Cons x xs query, ExtractParamsParse x xs params) => ExtractParams query params
#ExtractParamsParse Source
class ExtractParamsParse (x :: Symbol) (xs :: Symbol) (params :: Row Type) | x xs -> params
Instances
ExtractParamsParse x "" ()
(Cons y ys xs, ParseParamName y ys "$" out, Cons z zs ys, Cons out ty row' row, AllowedParamType ty, ExtractParamsParse z zs row') => ExtractParamsParse "$" xs row
(Cons y ys xs, ExtractParamsParse y ys row) => ExtractParamsParse x xs row
#ParseParamName Source
class ParseParamName (x :: Symbol) (xs :: Symbol) (acc :: Symbol) (out :: Symbol) | x xs -> acc out
Instances
ParseParamName ")" "" out out
ParseParamName "\n" "" out out
(Append acc x out) => ParseParamName x "" acc out
ParseParamName " " xs out out
ParseParamName "," xs out out
ParseParamName ")" xs out out
(Cons y ys xs, Append acc x acc', ParseParamName y ys acc' out) => ParseParamName x xs acc out
#AllowedParamType Source
class AllowedParamType ty
Instances
- Modules
- Jajanmen