Documentation
¶
Index ¶
- Variables
- func CreateDB(ctx context.Context, dir, filename, querySetName string, o *Options) error
- func Diff(ctx context.Context, dir, name string, opts *Options) error
- func Do(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) int
- func Format(ctx context.Context, dir, filename string, o *Options) (map[string]string, error)
- func Generate(ctx context.Context, dir, filename string, o *Options) (map[string]string, error)
- func NewCmdVet() *cobra.Command
- func Process(ctx context.Context, rp ResultProcessor, dir, filename string, o *Options) error
- func Push(ctx context.Context, dir, filename string, opts *Options) error
- func Verify(ctx context.Context, dir, filename string, opts *Options) error
- func Vet(ctx context.Context, dir, filename string, opts *Options) error
- type Env
- type Options
- type OutputPair
- type ResultProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedChecks = errors.New("failed checks")
View Source
var ErrPluginProcessDisabled = errors.New("plugin: process-based plugins disabled via SQLCDEBUG=processplugins=0")
Functions ¶
func Format ¶
Format formats every query file referenced by the configuration with its engine's SQL formatter. It returns the formatted contents of each file, keyed by absolute path. Query files for engines without a formatter are skipped.
Types ¶
type Env ¶
type Env struct {
DryRun bool
Experiment opts.Experiment
}
type Options ¶
type ResultProcessor ¶
type ResultProcessor interface {
Pairs(context.Context, *config.Config) []OutputPair
ProcessResult(context.Context, config.CombinedSettings, OutputPair, *compiler.Result) error
}
Click to show internal directories.
Click to hide internal directories.