Module

Chanpon

Package
purescript-chanpon
Repository
justinwoo/purescript-chanpon

#Table Source

newtype Table

Constructors

Instances

#selectAll Source

selectAll :: forall rl result. RowToList result rl => Keys rl => FromResultFields rl () result => Table -> DBConnection -> Aff (Array (F (Record result)))

#createTableIfNotExists Source

createTableIfNotExists :: forall rl spec. RowToList spec rl => PrepareSpec rl spec => Table -> DBConnection -> Record spec -> Aff Unit

#insertOrReplaceInto Source

insertOrReplaceInto :: forall inputL input. RowToList input inputL => PrepareInput inputL input => Table -> DBConnection -> Record input -> Aff Unit

#deleteFrom Source

deleteFrom :: forall input ty name. RowToList input (Cons name ty Nil) => Cons name ty () input => IsSymbol name => ToParam ty => Table -> DBConnection -> Record input -> Aff Unit

#fromResultRow Source

fromResultRow :: forall rl fields. RowToList fields rl => FromResultFields rl () fields => Foreign -> F (Record fields)