diff --git a/changelog.md b/changelog.md index c7c440b..1da5e56 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,10 @@ + +3.5.3.1 +======= +- @jappeace + - [#303](https://github.com/bitemyapp/esqueleto/pull/303) + - Added docs for delete function for new experimental API. + 3.5.3.0 ======= - @m4dc4p diff --git a/esqueleto.cabal b/esqueleto.cabal index 691d579..a10e9b8 100644 --- a/esqueleto.cabal +++ b/esqueleto.cabal @@ -1,7 +1,7 @@ cabal-version: 1.12 name: esqueleto -version: 3.5.3.0 +version: 3.5.3.1 synopsis: Type-safe EDSL for SQL queries on persistent backends. description: @esqueleto@ is a bare bones, type-safe EDSL for SQL queries that works with unmodified @persistent@ SQL backends. Its language closely resembles SQL, so you don't have to learn new concepts, just new syntax, and it's fairly easy to predict the generated SQL and optimize it for your backend. Most kinds of errors committed when writing SQL are caught as compile-time errors---although it is possible to write type-checked @esqueleto@ queries that fail at runtime. . diff --git a/src/Database/Esqueleto/Internal/Internal.hs b/src/Database/Esqueleto/Internal/Internal.hs index 1eb7b7c..c3c4966 100644 --- a/src/Database/Esqueleto/Internal/Internal.hs +++ b/src/Database/Esqueleto/Internal/Internal.hs @@ -2618,6 +2618,15 @@ rawEsqueleto mode query = do -- 'from' $ \\(appointment :: 'SqlExpr' ('Entity' Appointment)) -> -- return () -- @ +-- +-- ==== "Database.Esqueleto.Experimental": +-- +-- @ +-- delete $ do +-- userFeature <- from $ table @UserFeature +-- where_ ((userFeature ^. UserFeatureFeature) `notIn` valList allKnownFeatureFlags) +-- @ +-- delete :: (MonadIO m) => SqlQuery ()