realworld-hs-0.1.0.0: Scotty impl of https://github.com/gothinkster/realworld
Safe HaskellSafe-Inferred
LanguageGHC2021

Conduit.DB.Utils

Synopsis

Documentation

dbTimeNow :: UTCTime Source #

Temporarily sets the time to some irrelevant number for typing reasons. Used for rows where the DB sets the timestamp using some trigger.

suchThat :: SqlQuery a -> (a -> SqlExpr (Value Bool)) -> SqlQuery a infixl 5 Source #

Shorthand for DB queries that select from a table just applying some filter

select $ do 
  e <- from table `suchThat` \e -> e.id ==. ???
  ...