Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "sql"
Name of the executor.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct { File string `json:"file,omitempty" yaml:"file,omitempty"` Commands []string `json:"commands,omitempty" yaml:"commands,omitempty"` Driver string `json:"driver" yaml:"driver"` DSN string `json:"dsn" yaml:"dsn"` }
Executor is a venom executor can execute SQL queries
func (Executor) GetDefaultAssertions ¶
func (e Executor) GetDefaultAssertions() venom.StepAssertions
GetDefaultAssertions return the default assertions of the executor.
func (Executor) ZeroValueResult ¶
func (Executor) ZeroValueResult() interface{}
ZeroValueResult return an empty implementation of this executor result
type QueryResult ¶
type QueryResult struct {
Rows Rows `json:"rows,omitempty" yaml:"rows,omitempty"`
}
QueryResult represents a rows return by a SQL query execution.
type Result ¶
type Result struct {
Queries []QueryResult `json:"queries,omitempty" yaml:"queries,omitempty"`
}
Result represents a step result.
Click to show internal directories.
Click to hide internal directories.