minigugus / connect-postgres-simple Goto Github PK
View Code? Open in Web Editor NEWA simple, minimal PostgreSQL session store for Connect/Express
License: MIT License
A simple, minimal PostgreSQL session store for Connect/Express
License: MIT License
Hey there,
just got around to trying this out, took a bit longer than anticipated ^^
Anyway, I struggled quite a bit at first because I trusted in the createTableIfMissing
option to create the table, but it never did that.
This resulted in errors, which weren't really shown (probably because express-session
only shows them in debug mode, which is odd). I had to manually add debug logging to access the error.
Maybe you could add some warnings if the table doesn't exists, etc.? (And fix the option, naturally ๐)
Hey @Minigugus, is there a possibility that you might update this to work properly with the latest version of Postgres.js (currently v3.3.2 as I write this)?
Here are a couple of the problems I ran into, which I've solved myself temporarily by manually altering /dist/index.js, but I'd rather my project depend on a properly updated version of this npm package instead of my patch branch:
createTableIfMissing
throws an UNSAFE_TRANSACTION error since sql.begin is now required for transactions. I worked around this by manually creating the table myself.The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Date
I'm not sure if there are any other issues but it appears to be working well for me now with the above workarounds. Let me know if you have any plans of officially updating this to work with v3. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.