db.go
package models
import (
"github.com/readysite/readysite/pkg/database"
"github.com/readysite/readysite/pkg/database/engines"
)
var (
// DB is the database connection for the example app.
DB = engines.NewMemory()
// Posts is the collection for Post entities.
Posts = database.Manage(DB, new(Post))
)