Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 2.54 KB

README.md

File metadata and controls

104 lines (74 loc) · 2.54 KB

Just another Scala driver for ArangoDB

Build Status Maven Central

Actor based Scala driver/client for ArangoDB. This driver is based on ArangoDB REST API and spray.io.

Stability

This is early version. Functionality:

  • Database: Create, List, Remove, by user, with user data
  • Collection: Create, List, Read (status, type, properties, count, statistics), Remove, (un)laod, truncate, rotate, rename
  • Document: Create, List, Read, Update, Remove, Test
  • Query, Cursor, Explain
  • ~~Graph, edge, edges~~~
  • Batch, Index
  • Export, replicate
  • Version, WAL, System, Tasks, Log

Usage

You may need to add the Sonatype nexus to your resolvers:

resolvers += "Sonatype OOS" at "https://oss.sonatype.org/content/repositories/releases"

sbt:

libraryDependencies += "com.auginte" % "scarango_2.11" % "0.2.4"

Maven:

<dependency>
  <groupId>com.auginte</groupId>
  <artifactId>scarango_2.11</artifactId>
  <version>0.2.4</version>
</dependency>

or other

Examples

Why another driver

This client/driver concentrates on faster/easier development of

  • Akka/spray based applications
  • Graph intensive applications

Development still in progress

Architecture concepts

  • Interacting with ArangoDB via Scarango Actor (reuse open HTTP connection)
  • All operations/actor messages grouped into requests, response and error packages
  • Use strong types for names of Databases and Collections, so currently used names be given implicitly

Similar projects

Run/Develop driver itself

Assuming, that ArangoDb is installed on http://127.0.0.1:8529 and disable-authentication=false

Run once:

sbt run

During development

sbt "~re-start"

Test

sbt test

License

Apache 2.0