Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Export 'returning' from the original package #4

Merged
merged 1 commit into from

2 participants

@da-x

No description provided.

@mightybyte mightybyte merged commit 1b3e76f into mightybyte:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 20, 2012
  1. @da-x

    Export P.returning as 'returning'

    da-x authored
This page is out of date. Refresh to see the latest.
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)
------------------------------------------------------------------------------
-- |
Something went wrong with that request. Please try again.