Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Storing multiple databases #71

Closed
tciuro opened this Issue · 1 comment

2 participants

@tciuro

Hello,

Regarding the following MongoStore structure:

store: new MongoStore({
    db: settings.db
})

My service has multiple databases (each client has access to its own) and I'd like to store them while their respective session is active. Is MongoStore limited to one database, or can I save multiple ones? I'm looking for something like this:

store: new MongoStore({
    dbA: db // (i.e. appleStuff),
    dbB: db // (i.e. googleStuff),
    dbC: db // (i.e. twitterStuff)
})

Is there some support that would allow me to store multiple connections? Thanks!

@jdesboeufs
Collaborator

Too complex behavior.
Answer: implement your own Store (it's easy!)

@jdesboeufs jdesboeufs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.