A Postgres session store backend for gorilla/sessions
A session store backend for gorilla/sessions - src.
make get-depsAvailable on godoc.org.
See http://www.gorillatoolkit.org/pkg/sessions for full documentation on underlying interface.
…NewPGStore and NewPGStoreFromPool now returns (*PGStore, error)I've stolen, borrowed and gotten inspiration from the other backends available:
Thank you all for sharing your code!
What makes this backend different is that it's for PostgreSQL.
We've recently refactored this backend to use the standard database/sql driver instead of Gorp. This removes a dependency and makes this package very lightweight and makes database interactions very transparent. Lastly, from the standpoint of unit testing where you want to mock the database layer instead of requiring a real database, you can now easily use a package like go-SQLMock to do just that.
No open issues yet, or sync has not completed.