Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect tries to connect to a database up to n times. There are `DBSetupOpt`s to do things like run migrations, create system objects, etc.
Types ¶
type DBSetupOpt ¶
DBSetupOpt is a function to perform some setup task on a database.
func CloseDB ¶
func CloseDB() DBSetupOpt
func Migrate ¶
func Migrate(dsn string, service string, sqlPath string) DBSetupOpt
Migrate runs migrations. It's supposed to run in production, so assume the target database is CockroachDB.
Click to show internal directories.
Click to hide internal directories.