packages feed

hasql-dynamic-statements 0.3 → 0.3.1

raw patch · 3 files changed

+3/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Hasql.DynamicStatements.Snippet: sql :: ByteString -> Snippet

Files

hasql-dynamic-statements.cabal view
@@ -1,5 +1,5 @@ name: hasql-dynamic-statements-version: 0.3+version: 0.3.1 synopsis: Toolkit for constructing Hasql statements dynamically description:   This library introduces into the Hasql ecosystem a new abstraction named Snippet,
library/Hasql/DynamicStatements/Snippet.hs view
@@ -3,6 +3,7 @@   Snippet,   param,   encoderAndParam,+  sql, ) where 
test/Main.hs view
@@ -50,7 +50,7 @@             case statement of               Statement.Statement x _ _ _ -> x           in do-            assertBool (ByteStringChar8.unpack sql) (isJust (ByteString.findSubstring "$1000" sql))+            assertBool (ByteStringChar8.unpack sql) (ByteString.isInfixOf "$1000" sql)       ]   ]