influxdb 1.2.0 → 1.2.1
raw patch · 4 files changed
+18/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Database.InfluxDB: formatDatabase :: Format Database r -> r
+ Database.InfluxDB: formatKey :: Format Key r -> r
Files
- CHANGELOG.md +4/−0
- influxdb.cabal +2/−2
- src/Database/InfluxDB.hs +6/−4
- src/Database/InfluxDB/Types.hs +6/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+## v1.2.1 - 2017-06-19++* Export `formatDatabase` and `formatKey` from `Database.InfluxDB` for convenience+ ## v1.2.0 - 2017-06-19 There are a lot of breaking changes in this release. The API has been cleaned up
influxdb.cabal view
@@ -1,5 +1,5 @@ name: influxdb-version: 1.2.0+version: 1.2.1 synopsis: Haskell client library for InfluxDB description: @influxdb@ is a Haskell client library for InfluxDB.@@ -142,5 +142,5 @@ source-repository this type: git- tag: v1.2.0+ tag: v1.2.1 location: https://github.com/maoe/influxdb-haskell.git
src/Database/InfluxDB.hs view
@@ -38,8 +38,8 @@ -- ** Query construction -- $query-construction- , formatQuery- , (%)+ , F.formatQuery+ , (F.%) -- ** Query parameters , QueryParams@@ -62,13 +62,15 @@ -- * Common data types and classes , Precision(..) , Database+ , F.formatDatabase , Key+ , F.formatKey , Server+ , defaultServer , host , port , ssl- , defaultServer , Credentials , credentials@@ -84,13 +86,13 @@ , HasManager(..) ) where -import Database.InfluxDB.Format ((%), formatQuery) import Database.InfluxDB.JSON import Database.InfluxDB.Line import Database.InfluxDB.Manage (manage) import Database.InfluxDB.Query import Database.InfluxDB.Types import Database.InfluxDB.Write+import qualified Database.InfluxDB.Format as F {- $intro = Getting started
src/Database/InfluxDB/Types.hs view
@@ -109,10 +109,15 @@ -- | Password to access InfluxDB password :: Lens' Credentials Text --- | Database name+-- | Database name.+--+-- 'Database.InfluxDB.formatDatabase' can be used to construct a+-- 'Database'. newtype Database = Database { databaseName :: Text } deriving (Eq, Ord) -- | String type that is used for measurements, tag keys and field keys.+--+-- 'Database.InfluxDB.formatkey' can be used to construct a 'Key'. newtype Key = Key Text deriving (Eq, Ord) instance IsString Database where