All Projects → esycat → rql-scala

esycat / rql-scala

Licence: other
RethinkDB Scala Driver

Programming Languages

scala
5932 projects
groovy
2714 projects
shell
77523 projects

Projects that are alternatives of or similar to rql-scala

Rethinkdb Go
Go language driver for RethinkDB
Stars: ✭ 1,582 (+12069.23%)
Mutual labels:  driver, rethinkdb
Rethinkdb.driver
🎧 A NoSQL C#/.NET RethinkDB database driver with 100% ReQL API coverage.
Stars: ✭ 350 (+2592.31%)
Mutual labels:  driver, rethinkdb
mlx90632-library
MLX90632 library for the Melexis 90632 Infra Red temperature sensor.
Stars: ✭ 34 (+161.54%)
Mutual labels:  driver
elm-testable
Makes Cmds and Tasks testable
Stars: ✭ 42 (+223.08%)
Mutual labels:  deprecated
dockerX
Examples of amazing Docker/Docker-Compose/Docker Swarm technologies
Stars: ✭ 17 (+30.77%)
Mutual labels:  rethinkdb
phpRedisTimeSeries
📈 Use Redis Time Series in PHP!
Stars: ✭ 23 (+76.92%)
Mutual labels:  driver
mono-reactive
open source Reactive Extensions (Rx) implementation for Mono
Stars: ✭ 65 (+400%)
Mutual labels:  deprecated
cdrs-tokio
High-level async Cassandra client written in 100% Rust.
Stars: ✭ 54 (+315.38%)
Mutual labels:  driver
worker
[DEPRECATED]
Stars: ✭ 12 (-7.69%)
Mutual labels:  deprecated
swoole-postgresql-doctrine-driver
🔌 A Doctrine DBAL Driver implementation on top of Swoole Coroutine PostgreSQL client
Stars: ✭ 15 (+15.38%)
Mutual labels:  driver
realtek rtwifi
Realtek RTWIFI - RTL8XXXU mod
Stars: ✭ 32 (+146.15%)
Mutual labels:  driver
state-farm-distracted-driver-detection
Automatically classification of each driver's behavior given a dataset of 2D dashboard camera images.
Stars: ✭ 32 (+146.15%)
Mutual labels:  driver
QR
DEPRECATED The bookmarklet and extensions generate QRCode of the current URL for viewing on mobile devices (Google Chrome/Mozilla Firefox/Opera/Safari)
Stars: ✭ 20 (+53.85%)
Mutual labels:  deprecated
marquez-airflow
Airflow support for Marquez
Stars: ✭ 33 (+153.85%)
Mutual labels:  deprecated
nativeble
A fully-fledged cross-platform BLE library for desktop.
Stars: ✭ 15 (+15.38%)
Mutual labels:  driver
Meteor-logger
🧾 Meteor isomorphic logger. Store application logs in File (FS), MongoDB, or print in Console
Stars: ✭ 51 (+292.31%)
Mutual labels:  driver
SkotOS
Open Source version of the SkotOS narrative prose library, using the DGD driver.
Stars: ✭ 21 (+61.54%)
Mutual labels:  driver
margarine
Butter Cloudiness by Example
Stars: ✭ 15 (+15.38%)
Mutual labels:  deprecated
io
A Node.js based system for managing a stream, including a chat bot, overlays, stream note generation and more.
Stars: ✭ 22 (+69.23%)
Mutual labels:  deprecated
OSM-Completionist
⛔️ DEPRECATED iOS companion app for OpenStreetMap that allows contributors to complete missing information
Stars: ✭ 17 (+30.77%)
Mutual labels:  deprecated

RethinkDB Scala Driver

The driver implements only the base part of the API.

It should work for RethinkDB v1.10.

Installation

SBT

appDependencies ++= Seq(
    "com.esyfur" % "rql" % "0.1.+"
)

Gradle

dependencies {
    compile group: 'com.esyfur', name: 'rql', version: '0.1.+'
}

Maven

<dependency>
    <groupId>com.esyfur</groupId>
    <artifactId>rql</artifactId>
    <version>0.1.+</version>
</dependency>

Usage

See the Main class for usage examples. Try gradle run to execute the class.

import com.esyfur.{rql => r}

val host = "localhost"
val db   = "awesomeness"
val tbl  = "beautifulThings"

val data = Map(...)

// connect to the server, set default connection and database
val conn = r.connect(host).repl().use(db)

// create a new database and show a list of existing databases
r.dbCreate(db).run()
r.dbList.run()

// create a new table and show a list of existing tables in the database
r.db(db).tableCreate(tbl).run()
r.db(db).tableList.run()

// insert some data
r.db(db).table(tbl).insert(data).run()

// select data from the table in different ways
r.db(db).table(tbl).limit(5).run()
r.db(db).table(tbl).slice(1, 2).run()

// check whether the table is empty
r.db(db).table(tbl).isEmpty.run()
r.db(db).table(tbl).count().run()

// math expressions
r.expr(5).add(2).add(10).sub(12).mul(6).div(3).mod(3).run()

// cleanup and disconnect
r.db(db).tableDrop(tbl).run()
r.dbDrop(db).run()
conn.close()

Development

To re-download and re-compile the protobuf API:

gradle protoApiDownload protoApiCompile

To run the test suite:

gradle test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].