maxcountryman / tower-sessions-stores

🚃 Previously bundled session stores for `tower-sessions`.
https://github.com/maxcountryman/tower-sessions
MIT License
27 stars 19 forks source link

implement create method for mongdb-store #16

Open maxcountryman opened 6 months ago

maxcountryman commented 6 months ago

Evidently mongo doesn't support transactions unless you use a replica set and it's kind of a pain to set this up for testing.

If any mongo store users read this and would like this to be updated, I would appreciate your input.

davidbayo10 commented 2 months ago

I think setting up a replica set locally isn't that complicated, as you can have a single-node replica set. With proper documentation, it should be sufficient. I'm really interested in updating these dependencies because my project is using MongoDB as the database and I'm currently experiencing compatibility issues with tower-sessions, tower-sessions-mongodb-store, and MongoDB. What do you think would be a solution to move forward on this as soon as possible? Thank you in advance.

maxcountryman commented 2 months ago

@davidbayo10 why don't you implement SessionStore yourself?

davidbayo10 commented 2 months ago

Because this package solves all I need. It just needs to be adapted to the new tower-sessions API requirements

maxcountryman commented 2 months ago

@davidbayo10 it's a small interface which you can adapt directly if you like. It makes no sense to publish a broken implementation as I mentioned yesterday. If you'd like to address that problem then that's fine but if you want to fix your immediate problem I think you have all the tools to do so.