packages feed

postgresql-simple-sop 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+4/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

postgresql-simple-sop.cabal view
@@ -1,5 +1,5 @@ name:                postgresql-simple-sop-version:             0.1.0.1+version:             0.1.0.2 synopsis:            Generic functions for postgresql-simple homepage:            https://github.com/openbrainsrc/postgresql-simple-sop license:             MIT
src/Database/PostgreSQL/Simple/SOP.hs view
@@ -79,7 +79,9 @@  -} gselectFrom :: forall r q. (ToRow q, FromRow r, Generic r, HasFieldNames r) => Connection -> Query -> q -> IO [r]-gselectFrom conn q1 args = query conn ("select (" <> (fromString $ intercalate "," $ fieldNames $ (Proxy :: Proxy r) ) <> ") from " <> q1) args+gselectFrom conn q1 args = do+  let fullq = "select " <> (fromString $ intercalate "," $ fieldNames $ (Proxy :: Proxy r) ) <> " from " <> q1+  query conn fullq args  {-|Generic insert