rethinkdb 2.2.0.8 → 2.2.0.9
raw patch · 3 files changed
+16/−8 lines, 3 filesdep ~vectorPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: vector
API changes (from Hackage documentation)
Files
- Database/RethinkDB/Driver.hs +10/−5
- Database/RethinkDB/Functions.hs +3/−0
- rethinkdb.cabal +3/−3
Database/RethinkDB/Driver.hs view
@@ -40,13 +40,18 @@ import Database.RethinkDB.ReQL -- $setup------ Get the doctests ready---+-- >>> :set -XOverloadedStrings -- >>> :load Database.RethinkDB.NoClash -- >>> import qualified Database.RethinkDB as R--- >>> :set -XOverloadedStrings+-- >>> import Control.Exception+-- >>> import Data.Text+-- >>> let try' x = (try x `asTypeOf` return (Left (undefined :: SomeException))) >> return () -- >>> h <- fmap (use "doctests") $ connect "localhost" 28015 def+-- >>> try' $ run' h $ dbCreate "doctests"+-- >>> try' $ run' h $ tableCreate (table "users"){ tablePrimaryKey = Just "name" }+-- >>> try' $ run' h $ delete $ table "users"+-- >>> run h $ table "users" # insert (R.map (\x -> ["name":=x]) ["bill", "bob", "nancy" :: Text]) :: IO WriteResponse+-- {inserted:3} -- | Per-query settings@@ -106,7 +111,7 @@ -- >>> next c -- Just "bill" -- >>> collect c--- ["nancy","sabrina"]+-- ["bob","nancy"] run :: (Expr query, Result r) => RethinkDBHandle -> query -> IO r run h = runOpts h []
Database/RethinkDB/Functions.hs view
@@ -522,6 +522,9 @@ -- | Merge two objects together --+-- NOTE: This driver is based on the official JavaScript driver, you are correct to expect the same semantics.+-- However the order of composition is flipped by putting the first argument last.+-- -- >>> run' h $ merge ["a" := 1, "b" := 1] ["b" := 1, "c" := 2] -- {"a":1,"b":1,"c":2} merge :: (Expr a, Expr b) => a -> b -> ReQL
rethinkdb.cabal view
@@ -1,5 +1,5 @@ name: rethinkdb-version: 2.2.0.8+version: 2.2.0.9 cabal-version: >=1.8 build-type: Simple license: Apache@@ -16,7 +16,7 @@ GHC==7.6.3, GHC==7.8.4, GHC==7.10.3,- GHC==8.0.1+ GHC==8.0.2 source-repository head type: git@@ -37,7 +37,7 @@ data-default >=0.5 && <0.8, network >=2.4 && <2.7, mtl >=2.1 && <2.3,- vector >=0.10 && <0.12,+ vector >=0.10 && <0.13, time >=1.4 && <1.7, utf8-string >=0.3 && <1.1, binary >=0.5 && <0.9,