package dbtest

Import Path
	golang.org/x/pkgsite/internal/testing/dbtest (on go.dev)

Dependency Relation
	imports 10 packages, and imported by one package

Involved Source Files Package dbtest supports testing with a database.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
MultiErr can be used to combine one or more errors into a single error. ( T) Error() string T : error
Package-Level Functions (total 7, in which 5 are exported)
ConnectAndExecute connects to the postgres database specified by uri and executes dbFunc, then cleans up the database connection. It returns an error that Is derrors.NotFound if no connection could be made.
CreateDB creates a new database dbName.
CreateDBIfNotExists checks whether the given dbName is an existing database, and creates one if not.
DBConnURI generates a postgres connection string in URI format. This is necessary as migrate expects a URI.
DropDB drops the database named dbName.