Skip to content

dcsobral/quasar-datasource-mongo

 
 

Repository files navigation

Quasar Mongo Discord

Usage

libraryDependencies += "com.precog" %% "quasar-datasource-mongo" % <version>

Configuration

{ "connectionString": <CONNECTION_STRING>,
  "batchSize": Int,
  "pushdownLevel": <"disabled"|"light"|"full">,
  "tunnelConfig": {
    host: String,
    port: Int,
    pass: <PASS>
  }
}
// PASS
{ "password": String } | { "key": String, "passphrase": String }
  • connectionString must conform Connection String Format
  • tunnelConfig is optional
  • pass.key is content of private key file for ssh tunneling.

Testing

The simplest way to test is using Nix system and run subset of .travis.yml:

$> docker run -d -p 127.0.0.1:27018:27017 --name mongodb -e MONGODB_ROOT_PASSWORD=secret bitnami/mongodb:4.1.4
$> docker-compose up -d

The second command starts two containers:

  • sshd with root:root with 22222 ssh port
  • mongo aliased as mng for sshd container.

(Unfortunately docker-compose doesn't work on Windows for me @cryogenian 29.04.2019)

About

MongoDB quasar connector

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 90.9%
  • Shell 8.8%
  • Batchfile 0.3%