No commit activity in last 3 years
No release in over 3 years
Loads records from RethinkDB.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.0
~> 12.0
 Project Readme

RethinkDB input plugin for Embulk

Gem Version

RethinkDB input plugin for Embulk loads records from RethinkDB.

Overview

  • Plugin type: input
  • Resume supported: no
  • Cleanup supported: no
  • Guess supported: no

Configuration

  • host: database host name (string, required)
  • port: database port number (integer, default: 28015)
  • database: database name (string, required)
  • user: database login user name (string, required)
  • password: database login password (string, required)
  • cert_file: path to TLS CA certificate file (string)
  • Select whether to write a query or specify only the table
    • query: ReQL to run (string)
      or
    • table: table from which load data from (string)
  • column_name: column name used in outputs (string, default: "record")

ReQL for query option

ReQL specified in query option is described according to the following syntax rules.

  • The syntax is JavaScript (ECMAScript 5.1) runs on Nashorn (JavaScript Engine developed in Java).
  • The code must be an expression that evaluates to ReqlAst. (No trailing semicolon required)
  • The RethinkDB object can be referenced as the variable r.

Example

in:
  type: rethinkdb
  host: 'rethink'
  port: 28015
  database: 'test'
  user: 'admin'
  password: ''
  query:
    r.table("authors").filter(function(row) {
      return row.g("tv_show").eq("Battlestar Galactica");
    })
out: {type: stdout}

Build

$ ./gradlew gem