Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { Dialect string DSN string RO_DSN string // contains filtered or unexported fields }
DB represents an ephemeral database that starts blank and can be used to run tests against.
func Postgres ¶
Postgres provisions a new, blank database with a random name on the localhost of the running process. It assumes that you have postgres running on the default port, have the command line postgres tools installed, and that the current user has access to the server. It panics on the event of a failure.
Click to show internal directories.
Click to hide internal directories.