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 Vet(ctx context.Context, dir, filename string, opts *Options) error
- type Env
- type Options
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 ¶
Click to show internal directories.
Click to hide internal directories.