Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Export P.returning as 'returning'

  • Loading branch information...
commit db061d4d1e8c31d117763a7777139824e929ce40 1 parent 0b8819d
@da-x authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Snap/Snaplet/PostgresqlSimple.hs
View
6 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)
------------------------------------------------------------------------------
-- |
Please sign in to comment.
Something went wrong with that request. Please try again.