cobookman / express-sql-session

Express Session Store backed by a SQL database. The following sql databases are supported Postgres, MySQL, MariaDB and SQLite3
MIT License
0 stars 2 forks source link

Object #<Object> has no method 'ensureTable' #1

Open ghost opened 9 years ago

ghost commented 9 years ago

Getting this when starting my app (from lib/index.js:48:14) I'm using MariaDB

cobookman commented 9 years ago

How did you instantiate the library. Aka did you do something similar to this:

var sessionStore = new SessionStore(options)

app.use(session({
    key: 'session_cookie_name',
    secret: 'session_cookie_secret',
    store: sessionStore,
    resave: true,
    saveUninitialized: true
}))