New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

loopback-connector-rethinkdb

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-connector-rethinkdb

RethinkDB connector for Loopback.io

latest
Source
npmnpm
Version
1.0.13
Version published
Maintainers
1
Created
Source

loopback-connector-rethinkdb

Loopback connector for RethinkDB.

Installation

In your application root directory, enter this command to install the connector:

npm install loopback-connector-rethinkdb --save

This installs the module from npm and adds it as a dependency to the application's package.json file.

Creating a RethinkDB data source

Add an entry in the application's /server/datasources.json :

"mydb": {
  "url":  "http://username:password@host.com:28015/dbName"
  "connector": "rethinkdb"  
}

Edit datasources.json to add any other additional properties that you require.

Connection properties

PropertyType  Description
connectorStringConnector name, “loopback-connector-rethinkdb”
urlStringFull connection url. Overrides other connection settings
databaseStringDatabase name
hostStringDatabase host name
passwordStringPassword to connect to database
portNumberDatabase TCP port
usernameStringUsername to connect to database

Additional properties

You can specify an 'additionalSettings' property:

"additionalSettings": {
  "ssl": {
    "ca": "${RETHINKDB_SSL}"
  }
}

RETHINKDB_SSL contains the base64encoded SSL cert.

Changefeed

The connector has support for RethinkDB changefeeds. You can access to the functionality by doing:

ModelName.dataSource.connector.changeFeed(Model.modelName, filter, options);

The filter parameter is the standard loopback filtering object. The options parameter can have a throttle property, specified in milliseconds. Disabled by default.

PS: If a change happens, the changefeed function will return the entire results set. Delta results are on the roadmap

FAQs

Package last updated on 24 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts