Commit Graph

7 Commits

Author SHA1 Message Date
Chris Johnson 1eb5e3d517 Remove the Gorp dependency
Removed the underlying Gorp package as a dependency & replaced with use of the standard database/sql driver.

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](https://github.com/DATA-DOG/go-sqlmock) to do just that.

The tests may/not pass for Golang 1.5; it appears that the problem is Travis need to install a linter.
2016-08-11 15:06:09 -04:00
Anton Lindstrom be8bed0dab Add testable example in README
This adds a testable example for the README to be able to make the user
experience for new users better.
2016-07-21 20:39:33 +00:00
Anton Lindström 3d07ee7804 Add breaking changes note to README
This adds a section about breaking changes and when they were introduced in the README.
2016-07-19 21:21:08 +02:00
Bruno Bigras ff2aec5019 Syntax highlighting in README.md 2015-09-13 15:14:50 -04:00
Matt Silverlock 1ad21d029c feature: expired sessions can be deleted via a background goroutine.
- Call defer store.StopCleanup(store.Cleanup(time.Minute * 5)) after store creation.
- Does not break the existing API (optional, but recommended)
- Based on https://github.com/yosssi/boltstore/reaper
- Deletes expired sessions (where expireson > now())
- Includes tests
2015-07-11 11:56:04 +08:00
Bruno Bigras f051d4e5e4 Fix godoc link in README 2014-10-11 17:17:54 -04:00
Anton Lindström ef9866c6f5 initial commit 2014-01-07 17:15:27 +00:00