🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

libpiggy

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libpiggy

Use a PostgreSQL database like a JSON document store.

0.11.2
latest
Source
npm
Version published
Weekly downloads
15
-78.26%
Maintainers
1
Weekly downloads
 
Created
Source

libpiggy Build Status npm version

Use a PostgreSQL database like a JSON document store.

Why?

On the surface using a relational database as a JSON document store might seem silly. Still, I think there are great reasons to choose this approach over something like Mongo.

  • You like PostgreSQL
  • Postgres JSON querying and indexing is powerful and capable
  • You like the option of using PostgreSQL queries, in addition to some of the more ORM-like abstractions incorporated here
  • You like the idea of prototyping data objects with the flexibility of schema-less JSON, but imagine yourself making changes to a more relational model in the future
  • For some reason you only have access to PostgreSQL, but prefer this approach
  • You like the watchTable functionality, and being able to create an easy, lightweight reactive database

Documentation

For now please look at the tests, and at the hapi-piggy module which implements this.

Testing

You'll need Docker and docker-compose available.

$ docker-compose up
$ npm test

Requirements

  • Node.js >= 6.0
  • PostgreSQL >= 9.5 (local tests use 9.6, Travis uses 9.5)

Todo

  • Documentation
  • Support nested btree indexes
  • Proper tests

Keywords

hapi

FAQs

Package last updated on 01 Jun 2018

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