Permalink
Browse files

Export P.returning as 'returning'

  • Loading branch information...
1 parent 0b8819d commit db061d4d1e8c31d117763a7777139824e929ce40 @da-x da-x committed Aug 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Snap/Snaplet/PostgresqlSimple.hs
@@ -73,6 +73,7 @@ module Snap.Snaplet.PostgresqlSimple (
, execute
, execute_
, executeMany
+ , returning
, begin
, beginLevel
, beginMode
@@ -231,6 +232,11 @@ query q params = withPG (\c -> P.query c q params)
query_ :: (HasPostgres m, FromRow r) => P.Query -> m [r]
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)
------------------------------------------------------------------------------
-- |

0 comments on commit db061d4

Please sign in to comment.