Documentation ¶
Index ¶
- Constants
- Variables
- func AfterSuiteFn()
- func BeforeSuiteFn(args ...interface{}) context.Context
- func DumpEventQueue(ctx context.Context)
- func ExpectJobToPass(j *job.Job)
- func GetEmbeddedPGConfig(database string, port int) (embeddedPG.Config, string)
- func MustDB() *sql.DB
- func NewDB(ctx context.Context, name string) (*context.Context, func(), error)
- func RestartEmbeddedPG() error
- func RunEcho(e *echo.Echo) (int, func())
- func SetupDB(dbName string, args ...interface{}) (context.Context, error)
Constants ¶
View Source
const ( DUTY_DB_CREATE = "DUTY_DB_CREATE" DUTY_DB_DATA_DIR = "DUTY_DB_DATA_DIR" DUTY_DB_URL = "DUTY_DB_URL" TEST_DB_PORT = "TEST_DB_PORT" )
Env vars for embedded db
Variables ¶
View Source
var DefaultContext context.Context
View Source
var PgUrl string
View Source
var WithExistingDatabase = "with_existing_database"
View Source
var WithoutDummyData = "without_dummy_data"
View Source
var WithoutRLS = "rls_disabled"
Functions ¶
func AfterSuiteFn ¶
func AfterSuiteFn()
func BeforeSuiteFn ¶
func DumpEventQueue ¶ added in v1.0.265
func ExpectJobToPass ¶ added in v1.0.265
func GetEmbeddedPGConfig ¶ added in v1.0.254
func GetEmbeddedPGConfig(database string, port int) (embeddedPG.Config, string)
func NewDB ¶ added in v1.0.265
NewDB creates a new database from an existing context, and returns the new context and a function that be called to drop it
func RestartEmbeddedPG ¶ added in v1.0.785
func RestartEmbeddedPG() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.