packages feed

couchdb-conduit 0.8.1 → 0.8.2

raw patch · 2 files changed

+18/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Database.CouchDB.Conduit.View: viewQpEndKey :: ToJSON a => a -> QueryItem
+ Database.CouchDB.Conduit.View: viewQpStartKey :: ToJSON a => a -> QueryItem

Files

couchdb-conduit.cabal view
@@ -1,5 +1,5 @@ name:           couchdb-conduit-version:        0.8.1
+version:        0.8.2
 cabal-version:  >= 1.8 build-type:     Simple stability:      Testing
src/Database/CouchDB/Conduit/View.hs view
@@ -41,6 +41,8 @@     -- ** Keys
     -- $view_query_keys #view_query_keys#
     viewQpKey,
+    viewQpStartKey,
+    viewQpEndKey,
     viewQpKeys,
 
     -- ** Control
@@ -213,6 +215,21 @@        a                -- ^ Key 
     -> HT.QueryItem
 viewQpKey = viewQp "key"
+
+-- | Row key to start with.
+--   Shorthand for @viewQp "startkey"@
+viewQpStartKey :: A.ToJSON a =>
+       a                -- ^ Start Key value
+    -> HT.QueryItem
+viewQpStartKey = viewQp "startkey"
+
+-- | Row key to end with.
+--   Shorthand for @viewQp "endkey"@
+viewQpEndKey :: A.ToJSON a =>
+       a                -- ^ Start Key value
+    -> HT.QueryItem
+viewQpEndKey = viewQp "endkey"
+
 
 -- | Make @keys=...@ query parameter. 
 --   Shorthand for @viewQp \"keys\"@.