Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestDatabase ¶
func CreateTestDatabase(dbPath string, migrationFunctions []func(*gorm.DB) error, fixtureFiles []string) (*gorm.DB, error)
CreateTestDatabase recreates the test database and runs migrations and fixtures as passed in, returning a pointer to the database
func NewDatabase ¶
NewDatabase returns a gorm.DB struct, gorm.DB.DB() returns a database handle see http://golang.org/pkg/database/sql/#DB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.