chichou / koa-sqlite3-session Goto Github PK
View Code? Open in Web Editor NEWsqlite3 adaption for koa-generic-session
Home Page: http://chichou.github.io/koa-sqlite3-session
License: MIT License
sqlite3 adaption for koa-generic-session
Home Page: http://chichou.github.io/koa-sqlite3-session
License: MIT License
The documentation for koa-generic-session
shows milliseconds (ms) are supposed to be used, instead of seconds. For example, this should have a TTL of 1 day, but SQLite3Store gives it a TTL of 1,000 days:
app.use(session({
store: new SQLite3Store('filename.db'),
ttl: 86400000 // ms
});
It works great if you pass in seconds:
app.use(session({
store: new SQLite3Store('filename.db'),
ttl: 86400
});
One nice thing about koa-generic-session is that you can swap out one session provider for another. For example you could use SQLite for sessions when doing local development, and Redis on a production server. But with this difference you canβt share the same config between koa-redis and koa-sqlite3-session.
Could you please bumb the dependency to SQLite3 to the now current version 5.x?
Using SQLite3 installs version 5.
And requiring Koa-SQlite-Session tries to build SQLite version 4.x which requires build tools and therefor often fails on the machines of my students.
Which is quite frustrating for them (and me).
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.