Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenTestingDatabase ¶
OpenTestingDatabase opens a new Gorm session onto a testing database. If the TESTING_DATABASE_DSN environment variable is set, that is used as the connection DSN otherwise an ephemeral database is created via docker.
A new pointer to a new gorm.DB instance is returned along with a function which must be called to close the instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.