Merge branch 'master' of git://github.com/meteficha/esqueleto

This commit is contained in:
Sam Anklesaria 2013-07-02 19:40:28 +09:00
commit 024537b592
2 changed files with 13 additions and 10 deletions

View File

@ -1,5 +1,5 @@
name: esqueleto
version: 1.2.2
version: 1.2.3
synopsis: Bare bones, type-safe EDSL for SQL queries on persistent backends.
homepage: https://github.com/meteficha/esqueleto
license: BSD3
@ -81,7 +81,7 @@ test-suite test
-- Test-only dependencies
, HUnit
, QuickCheck
, hspec >= 1.3 && < 1.6
, hspec >= 1.3 && < 1.7
, persistent-sqlite == 1.2.*
, persistent-template == 1.2.*
, monad-control

View File

@ -323,32 +323,35 @@ import qualified Database.Persist
-- from $ \\p -> do
-- where_ (p ^. PersonAge <. just (val 14))
-- @
--
--
-- The results of queries can also be used for insertions.
-- In @SQL@, we might write the following, inserting a new blog
-- post for every user:
--
--
-- @
-- INSERT INTO BlogPost
-- SELECT ('Group Blog Post', id)
-- FROM Person
-- @
--
--
-- In @esqueleto@, we may write the same query above as:
--
--
-- @
-- insertSelect $ from $ \p->
-- return $ BlogPost \<# \"Group Blog Post\" \<&\> (p ^. PersonId)
-- @
--
-- Individual insertions can be performed through Persistent's
-- 'insert' function, reexported for convenience.
--
-- Individual insertions can be performed through Persistent's
-- 'insert' function, reexported for convenience.
----------------------------------------------------------------------
-- $reexports
--
-- We re-export many symbols from @persistent@ for convenince
-- We re-export many symbols from @persistent@ for convenince:
--
-- * \"Store functions\" from "Database.Persist".
--
-- * Everything from "Database.Persist.Class" except for