Skip to content

redraiment/pgsql-proxy-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgsql-proxy-middleware

The one-liner node.js RESTful middleware for PostgreSQL tables.

Install

npm

npm i pgsql-proxy-middleware

yarn

yarn add pgsql-proxy-middleware

setupProxy.js

const bodyParser = require('body-parser');
const proxy = require('pgsql-proxy-middleware');

module.exports = function(app) {
    app.use(bodyParser.json(), proxy({
        database: '<database name>',
        user: '<username>',
        ...
    }, '<table-name>'));
};

About

The one-liner node.js proxy middleware for PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published