soda-consumer-scala


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.socrata
ArtifactId

ArtifactId

soda-consumer-scala_2.10
Last Version

Last Version

2.2.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.10

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
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-v3_2.10 jar [3.0.0,4.0.0)

test (2)

Group / Artifact Type Version
org.scalatest : scalatest_2.10 jar 3.0.1
org.scalacheck : scalacheck_2.10 jar 1.13.4

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
2.2.0
2.1.1
2.1.0
2.0.10
2.0.9
2.0.8
2.0.6
2.0.5
2.0.3
2.0.2
2.0.1
2.0.0