opaleye-0.9.5.1: An SQL-generating DSL targeting PostgreSQL
Safe HaskellSafe-Inferred
LanguageHaskell2010

Opaleye.With

Synopsis

Documentation

with :: Default Unpackspec a a => Select a -> (Select a -> Select b) -> Select b Source #

withRecursive :: Default Binaryspec a a => Select a -> (a -> Select a) -> Select a Source #

withRecursive s f is the smallest set of rows r such that

r == s `unionAll` (r >>= f)

Explicit versions

withExplicit :: Unpackspec a a -> Select a -> (Select a -> Select b) -> Select b Source #