JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q27791F
  • License pemrouz.mit-license.org

Package Exports

  • rijs.db

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rijs.db) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ripple | Database

Coverage Status Build Status

Allows connecting a Ripple node to other external services

ripple.db('type://user:password@host:port/database')

It destructures the connection string into an object, looks up the type in ripple.db.adaptors, then passes that function the connection string as an object, and stores the result under ripple.db.connections.

You must register any adaptors you wish to use separate to this module. An adaptor is a function that takes the connection string as an object, creates an active connection and returns and object of four crud functions: { push, update, remove, load }. These hooks will be invoked when the corresponding event occurs.