soda-consumer-scala


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.socrata
ArtifactId

ArtifactId

soda-consumer-scala_2.9.0
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

soda-consumer-scala
soda-consumer-scala
Project URL

Project URL

http://www.github.com/socrata/soda-scala
Project Organization

Project Organization

com.socrata

Download soda-consumer-scala_2.9.0

How to add to project

<!-- https://jarcasting.com/artifacts/com.socrata/soda-consumer-scala_2.9.0/ -->
<dependency>
    <groupId>com.socrata</groupId>
    <artifactId>soda-consumer-scala_2.9.0</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.socrata/soda-consumer-scala_2.9.0/
implementation 'com.socrata:soda-consumer-scala_2.9.0:1.0.0'
// https://jarcasting.com/artifacts/com.socrata/soda-consumer-scala_2.9.0/
implementation ("com.socrata:soda-consumer-scala_2.9.0:1.0.0")
'com.socrata:soda-consumer-scala_2.9.0:jar:1.0.0'
<dependency org="com.socrata" name="soda-consumer-scala_2.9.0" rev="1.0.0">
  <artifact name="soda-consumer-scala_2.9.0" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.socrata', module='soda-consumer-scala_2.9.0', version='1.0.0')
)
libraryDependencies += "com.socrata" % "soda-consumer-scala_2.9.0" % "1.0.0"
[com.socrata/soda-consumer-scala_2.9.0 "1.0.0"]

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.9.0
org.slf4j : slf4j-api jar 1.6.6
com.ning : async-http-client jar 1.7.5
org.joda : joda-convert jar 1.2
joda-time : joda-time jar 2.1
com.rojoma : rojoma-json_2.9.0 jar 2.0.0

test (3)

Group / Artifact Type Version
org.scalatest : scalatest_2.9.0 jar 1.8
org.slf4j : slf4j-simple jar 1.6.6
org.scalacheck : scalacheck_2.9.0 jar 1.10.0

Project Modules

There are no modules declared in this project.

Soda-Scala

Scala bindings for the SODA2 API.

Getting it

Soda-Scala is published to maven central. There are two artifacts, soda-publisher-scala which contains everything, and soda-consumer-scala which contains only those features required for read-access. SBT configuration can be done by adding

libraryDependencies += "com.socrata" %% "soda-publisher-scala" % "2.0.0"

to your .sbt file, while for Maven, the pom snippet is:

<dependencies>
  <dependency>
    <groupId>com.socrata</groupId>
    <artifactId>soda-publisher-scala_${scala.version}</artifactId>
    <version>2.0.0</version>
  </dependency>
</dependencies>

Soda-scala is published for Scala versions 2.10.4, 2.11.8 and 2.12.0.

Sample code

The soda-scala-sample subproject contains sample code for reading and writing.

Interop with databinder-dispatch

Version 0.9 and above of databinder-dispatch uses async-http-client as its underlying engine. The default client can be retrieved using Http.client and passed to the soda-scala HttpConsumer or HttpProducer.

Future work

  • A query-building system richer than raw SoQL strings.
  • More ways to upload data (e.g., from a CSV file).
com.socrata

Socrata, Inc.

Libraries & SDKs here, platform repositories in http://github.com/socrata-platform.

Versions

Version
1.0.0