# README
GORM backend for go-rat session
Use:
import "github.com/go-rat/gormstore"
Documentation
https://pkg.go.dev/github.com/go-rat/gormstore?tab=doc
Example
// initialize and setup cleanup
store := gormstore.New(gorm.Open(...))
For more details see gormstore documentation.
Testing
Just sqlite3 tests:
go test
All databases using docker:
./test
If docker is not local (docker-machine etc):
DOCKER_IP=$(docker-machine ip dev) ./test
License
gormstore is licensed under the MIT license. See LICENSE for the full license text.
# Functions
New creates a new gormstore session.
NewOptions creates a new gormstore session with options.