Skip to content

PostSQL (PostgreSQL via database functions) session store for Connect

Notifications You must be signed in to change notification settings

postsql/connect-postsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

connect-postsql

PostSQL (PostgreSQL via database functions) session store for Connect

Usage with sails.js

add the following lines to sails/lib/session.js :

 case 'postsql': var PGStore = require('connect-postsql'); sessionConfig.store = new(PGStore(require('express')))(sessionConfig); break; 

and then configure it in config/session.js :

 adapter: 'postsql', database: 'dbname', host: 'localhost', user: 'dbuser', password: 'dbpasswd', port: 5432, 

Installing support in Postgresql database

To install the support functions in the database just execute:

psql databasename -f sql/connect-postsql-support.sql

About

PostSQL (PostgreSQL via database functions) session store for Connect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published