3 ms·
At Socialtext, we're working on https://npmjs.org/package/plv8x https://npmjs.org/package/plv8x that installs npm packages into Pg, and maps Node methods direct
by audreyt 13y ago
At Socialtext, we're working on https://npmjs.org/package/plv8x https://npmjs.org/package/plv8x that installs npm packages into Pg, and maps Node methods directly into Pg functions.
This provides a safe and modular alternative to PL/PgSQL and PL/Perl, and lets us re-use client side models & validators in the database.
https://npmjs.org/package/pgrest https://npmjs.org/package/pgrest builds on this work and offers a subset of MongoLab REST API for an existing Pg database, with the eventual aim of serving JSON APIs directly from the database, cutting out the middleware altogether.
We're also looking at adding Firebase-like ACLs into the mix.
Currently there's just the NPM doc'n and a bilingual presentation at https://speakerdeck.com/audreyt/pgrest-node-dot-js-in-the-database https://speakerdeck.com/audreyt/pgrest-node-dot-js-in-the-da... —— documentation will appear on http://pgre.st/ http://pgre.st/ as soon as the API solidifies.