influxdb-scala
influxdb-scala copied to clipboard
First usable version of the scala client
Not sure what the process is (like the proper destination for this pull request), but here is the first version of the Scala client I started during your last meet-up on december 2 last year. Let me know what you think,
Frank
Looks good, but the 2.11 requirement is a bit of a drag. Seems like it would be a big barrier for getting people to use it. Any way to make it work for earlier versions?
Gave it another try, but I see no way. No matter what I try the macro that maps Map[String,Any] to/from case classes does not compile. Something about the quasi quotes in 2.10.3 and macro paradise does either not work or there is an incompatibility with the way it works in 2.11. I keep getting these errors:
influxdb-scala/macro/src/main/scala/org/influxdb/scala/macros/Macros.scala:36: No implicit view available from (c.universe.Apply, _4.u.Tree) forSome { val _4: scala.reflect.api.QuasiquoteCompatV2{val u: c.universe.type} } => (A1, A2). }.unzip and
influxdb-scala/macro/src/main/scala/org/influxdb/scala/macros/Macros.scala:41: Can't splice Any with .., consider omitting the dots def toMap(t: $tpe): Map[String, Any] = Map(..$toMapParams)
and I can't for the life of me figure out what the issue is here… :-(
Note that this macro is only needed to support the typed queries. We could create a branch for scala 2.11 after I remove that feature from the main code base. I'm actually thinking it should probably be a separate trait anyways so you can leave it out if you don't use it.
yeah, I think it would be better to have a more clunky API that is compatible with earlier versions of Scala than to have something more elegant that requires a version most people aren't running. Thanks!
On Fri, Jan 17, 2014 at 3:43 PM, Frank Sauer [email protected]:
Gave it another try, but I see no way. No matter what I try the macro that maps Map[String,Any] to/from case classes does not compile. Something about the quasi quotes in 2.10.3 and macro paradise does either not work or there is an incompatibility with the way it works in 2.11. I keep getting these errors:
influxdb-scala/macro/src/main/scala/org/influxdb/scala/macros/Macros.scala:36: No implicit view available from (c.universe.Apply, _4.u.Tree) forSome { val _4: scala.reflect.api.QuasiquoteCompatV2{val u: c.universe.type} } => (A1, A2). }.unzip and
influxdb-scala/macro/src/main/scala/org/influxdb/scala/macros/Macros.scala:41: Can't splice Any with .., consider omitting the dots def toMap(t: $tpe): Map[String, Any] = Map(..$toMapParams)
and I can't for the life of me figure out what the issue is here… :-(
Note that this macro is only needed to support the typed queries. We could create a branch for scala 2.11 after I remove that feature from the main code base. I'm actually thinking it should probably be a separate trait anyways so you can leave it out if you don't use it.
— Reply to this email directly or view it on GitHubhttps://github.com/influxdb/influxdb-scala/pull/1#issuecomment-32644491 .
:+1:
+1
What's the status here. We have PR #2 that got merged, which is a much less idiomatic, blocking implementation with no documentation of any kind. Is @fsauer65 maintaining his implementation? Am I the only one looking for a proper client library to use Influx in Scala?
I have not maintained this since the other one got accepted. Sorry.
On Jan 8, 2015, at 5:45 PM, Peter Salanki [email protected] wrote:
What's the status here. We have PR #2 that got merged, which is a much less idiomatic, blocking implementation with no documentation of any kind. Is @fsauer65 maintaining his implementation? Am I the only one looking for a proper client library to use Influx in Scala?
— Reply to this email directly or view it on GitHub.
Wow, what a loss. :(
I agree that it's a loss. I tried InfluxDB for an internal demo/prototype a few months ago. Not using it right now. Will check back here should I need to use it again.