Documentation
¶
Index ¶
- type Database
- func (db *Database) CreateSchema(t *testing.T, schema string, opts ...OptionContext)
- func (db *Database) DropSchema(t *testing.T, schema string, opts ...OptionContext)
- func (db *Database) ExecuteFiles(t *testing.T, files []string, opts ...OptionExec)
- func (db *Database) ExecuteFolder(t *testing.T, folder string, opts ...OptionExec)
- func (db *Database) NameGen(prefix string) string
- func (db *Database) SetSchema(t *testing.T, schema string, opts ...OptionContext)
- type OptionContext
- type OptionExec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) CreateSchema ¶
func (db *Database) CreateSchema(t *testing.T, schema string, opts ...OptionContext)
func (*Database) DropSchema ¶
func (db *Database) DropSchema(t *testing.T, schema string, opts ...OptionContext)
func (*Database) ExecuteFiles ¶
func (db *Database) ExecuteFiles(t *testing.T, files []string, opts ...OptionExec)
func (*Database) ExecuteFolder ¶
func (db *Database) ExecuteFolder(t *testing.T, folder string, opts ...OptionExec)
type OptionContext ¶
type OptionContext func(o *optionContext)
func WithContext ¶
func WithContext(ctx context.Context) OptionContext
WithContext sets the context for the main function.
type OptionExec ¶
type OptionExec func(o *optionExec)
func WithExecContext ¶
func WithExecContext(ctx context.Context) OptionExec
WithContext sets the context for the file execution.
func WithTimeout ¶
func WithTimeout(timeout time.Duration) OptionExec
WithTimeout sets the timeout for each file execution.
func WithValues ¶
func WithValues(values map[string]string) OptionExec
WithValues sets os.Expand values inside the file content.
Click to show internal directories.
Click to hide internal directories.