soda-scala


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.socrata
ArtifactId

ArtifactId

soda-scala_2.9.2
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

soda-scala
soda-scala
Project URL

Project URL

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

Project Organization

com.socrata

Download soda-scala_2.9.2

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
com.socrata : soda-consumer-scala_2.9.2 jar 1.1.0
com.socrata : soda-publisher-scala_2.9.2 jar 1.1.0
org.scala-lang : scala-library jar 2.9.2

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.1.0
1.0.0