Documentation ¶
Index ¶
- func CreateMasterDB(ctx context.Context, log *zap.Logger, name string, category string, index int, ...) (db multinode.DB, err error)
- func CreateMasterDBOnTopOf(ctx context.Context, log *zap.Logger, tempDB *dbutil.TempDatabase) (db multinode.DB, err error)
- func Run(t *testing.T, ...)
- func SchemaName(testname, category string, index int, schemaSuffix string) string
- func SchemaSuffix() string
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMasterDB ¶
func CreateMasterDB(ctx context.Context, log *zap.Logger, name string, category string, index int, dbInfo Database) (db multinode.DB, err error)
CreateMasterDB creates a new satellite database for testing.
func CreateMasterDBOnTopOf ¶
func CreateMasterDBOnTopOf(ctx context.Context, log *zap.Logger, tempDB *dbutil.TempDatabase) (db multinode.DB, err error)
CreateMasterDBOnTopOf creates a new satellite database on top of an already existing temporary database.
func Run ¶
Run method will iterate over all supported databases. Will establish connection and will create tables for each DB.
func SchemaName ¶
SchemaName returns a properly formatted schema string.
Types ¶
Click to show internal directories.
Click to hide internal directories.