Skip to content

Commit

Permalink
Export P.returning as 'returning'
Browse files Browse the repository at this point in the history
  • Loading branch information
da-x committed Aug 20, 2012
1 parent 0b8819d commit db061d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Snap/Snaplet/PostgresqlSimple.hs
Expand Up @@ -73,6 +73,7 @@ module Snap.Snaplet.PostgresqlSimple (
, execute , execute
, execute_ , execute_
, executeMany , executeMany
, returning
, begin , begin
, beginLevel , beginLevel
, beginMode , beginMode
Expand Down Expand Up @@ -231,6 +232,11 @@ query q params = withPG (\c -> P.query c q params)
query_ :: (HasPostgres m, FromRow r) => P.Query -> m [r] query_ :: (HasPostgres m, FromRow r) => P.Query -> m [r]
query_ q = withPG (\c -> P.query_ c q) query_ q = withPG (\c -> P.query_ c q)


------------------------------------------------------------------------------
-- | See 'P.returning'
returning :: (HasPostgres m, ToRow q, FromRow r)
=> P.Query -> [q] -> m [r]
returning q params = withPG (\c -> P.returning c q params)


------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- | -- |
Expand Down

0 comments on commit db061d4

Please sign in to comment.