Documentation ¶
Index ¶
- Constants
- 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 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 ¶
View Source
const QueryFlagSqlcVetDisable = "@sqlc-vet-disable"
View Source
const RuleDbPrepare = "sqlc/db-prepare"
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 ¶
Types ¶
type OutputPair ¶ added in v1.24.0
type ResultProcessor ¶ added in v1.24.0
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.