fix/allow-many-rows #1
4
lazy.go
4
lazy.go
@@ -23,14 +23,14 @@ type MockResults struct {
|
||||
Rows [][]driver.Value
|
||||
}
|
||||
|
||||
type MockDetails struct {
|
||||
type Config struct {
|
||||
Query string
|
||||
Example any
|
||||
Keys []any
|
||||
RowCount int
|
||||
}
|
||||
|
||||
func GenerateRandomResults(m MockDetails) (*MockResults, error) {
|
||||
func GenerateRandomResults(m Config) (*MockResults, error) {
|
||||
if m.Example == nil {
|
||||
return nil, errors.New("example value cannot be nil")
|
||||
}
|
||||
|
Reference in New Issue
Block a user