Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCockroachDBForTests ¶
NewCockroachDBForTests creates a new temporary CockroachDB database with all the Schema applied for testing. It also returns a function to call to clean up the database after the tests have completed.
We pass in a database name prefix so that different tests work in different databases, even though they may be in the same CockroachDB instance, so that if a test fails it doesn't leave the database in a bad state for a subsequent test. A random number will be appended to the database name prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.