Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connect-session-knex

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-session-knex - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

4

index.js

@@ -138,5 +138,5 @@ 'use strict';

if (['mysql', 'mariasql'].indexOf(self.knex.client.dialect) > -1) {
table.dateTime('expired').notNullable();
table.dateTime('expired').notNullable().index();
} else {
table.timestamp('expired').notNullable();
table.timestamp('expired').notNullable().index();
}

@@ -143,0 +143,0 @@ });

{
"name": "connect-session-knex",
"description": "A knex.js session store for Express and Connect",
"version": "1.3.1",
"version": "1.3.2",
"main": "index.js",

@@ -6,0 +6,0 @@ "engines": {

@@ -41,4 +41,19 @@ # Connect Session Knex

This module does not create any indexes. You should create an index on the 'expired' column to make the session clearing efficient.
## Schema
### PostgreSQL or SQLite
#### Table Name "sessions"
| Column | Type | Modifiers | Storage |
|---------|:------------------------:|:---------:|:--------:|
| sid | character varying(255) | not null | extended |
| sess | json | not null | extended |
| expired | timestamp with time zone | not null | plain |
### Indexes:
```
"sessions_pkey" PRIMARY KEY, btree (sid)
"sessions_expired_index" btree (expired)
```
## Benchmarks

@@ -45,0 +60,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc