{"repo":"voxpelli/node-connect-pg-simple","free":true,"listed":false,"github":"https://github.com/voxpelli/node-connect-pg-simple","clone":"git clone https://github.com/voxpelli/node-connect-pg-simple.git","description":"A simple, minimal PostgreSQL session store for Express","language":"JavaScript","stars":248,"topics":["sessionstorage","postgres","node-js","express","express-session","postgresql"],"license":"MIT","category":"databases-storage","readme_excerpt":"Connect PG Simple A simple, minimal PostgreSQL session store for Express/Connect Installation Once npm installed the module, you need to create the \"session\" table in your database. For that you can use the table.sql file provided with the module: Or simply play the file via a GUI, like the pgAdminIII queries tool. Or instruct this module to create it itself, by setting the createTableIfMissing option. Note that connect-pg-simple requires PostgreSQL version 9.5 or above. Usage Examples are based on Express 4. Simple example: Advanced example showing some custom options: Advanced options Connection options Listed in the order they will be picked up. If multiple are defined, then the first in the lists that is defined will be used, the rest ignored. pool - The recommended one – Connection pool object (compatible with pg.Pool) for the underlying database module. pgPromise - Database object from pg-promise to be used for DB communications. conObject - If you don't specify a pool object, use this option or conString to specify a PostgreSQL Pool connection object and this module will create a new pool for you. conString - If you don't specify a pool object, use this option or conObject to specify a PostgreSQL connection string like postgres://user:password@host:5432/database and this module will create a new pool for you. If there's a connection string in the DATABASE URL environment variable (as it is by default on eg. Heroku) then this module will fallback to that if no other con","default_branch":null,"files":null,"tree":[],"storefront":"/r/voxpelli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/voxpelli/node-connect-pg-simple/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}