Versions in this module Expand all Collapse all v1 v1.0.3 Dec 8, 2024 v1.0.2 Dec 8, 2024 v1.0.1 Dec 8, 2024 v1.0.0 Dec 8, 2024 Changes in this version + var ErrFailedChecks = errors.New("failed checks") + var ErrPluginProcessDisabled = errors.New("plugin: process-based plugins disabled via SQLCDEBUG=processplugins=0") + 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 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 struct + Debug opts.Debug + DryRun bool + NoRemote bool + Remote bool + func ParseEnv(c *cobra.Command) Env + func (e *Env) Validate(cfg *config.Config) error + type Options struct + Against string + Env Env + MutateConfig func(*config.Config) + Stderr io.Writer + Tags []string + func (o *Options) ReadConfig(dir, filename string) (string, *config.Config, error) + type OutputPair struct + Gen config.SQLGen + Plugin *config.Codegen + type ResultProcessor interface + Pairs func(context.Context, *config.Config) []OutputPair + ProcessResult func(context.Context, config.CombinedSettings, OutputPair, *compiler.Result) error