Skip to content

Change SQLiteStore option #3

Open
abc-z wants to merge 71 commits intotnantoka:masterfrom
rawberg:master
Open

Change SQLiteStore option #3
abc-z wants to merge 71 commits intotnantoka:masterfrom
rawberg:master

Conversation

@abc-z
Copy link

@abc-z abc-z commented Jan 23, 2016

Sqlite use synchronous-mode by default. It's slow and is not necessary every time.
Can you change option parsing to apply some db parameters?
For example, for all keys (other than "dir", "db" and "table") execute
db.run("pragma ? = ?", [#key#, #value#], function (err) {/* ignore error or console.log */});

rawberg and others added 30 commits September 10, 2012 00:54
Check for unknown session id in get()
    - added option param for db file name (seperate from table name)
    - updated readme
…econds). bumped nom version and set the sqlite3 dependancy to be the latest master branch on github
Clean out expired sessions from database regularly
Add support for Express 4.x
User renamed to MapBox... This might fix the error on Cloud9IDE where this package cannot be installed.
Reference latest packaged sqlite instead of last revision
rawberg and others added 30 commits January 1, 2017 11:23
There's no reason to force the file extension. It should be up to
the developer to provide the desired file name with or without file
extension. Moreover, forcing file extension may prevent sessions to
be store in a single database unless the main database file also
uses the '.db' file extension.
Use WAL mode for the database
Bump sqlite3 to ^4.0.0 for nodeJs v10 and npm v6
Express does not bundle middleware like `session` anymore. Use the express-session middleware instead to avoid errors. 
Error: Most middleware (like session) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
Updated usage docs for express 4.x
updated to latest sqlite3 plugin
Add missing license file to match the license type specified in the package.json file.
Added new option 'createDirIfNotExists'
Implemented SQLiteStore.prototype.all
This design allows the library to remain flexible about database connection management in your application.
Also delete the shared cache tests since are not meaningful anymore, furthermore its use is discouraged https://www.sqlite.org/sharedcache.html#use_of_shared_cache_is_discouraged
pass the db connection object into the store object for more flexibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.