Documentation
¶
Overview ¶
Package plugin implements the main sqlc-use plugin logic for analyzing query usage.
Package plugin implements the main sqlc-use plugin logic for analyzing query usage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Package specifies the package name to use for query prefixes
Package string `json:"package"`
// Format specifies the output format (currently only "json" is supported)
Format string `json:"format"`
}
Options represents the plugin configuration options from sqlc.yaml
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns the default plugin options
type UsePlugin ¶
type UsePlugin struct {
// contains filtered or unexported fields
}
UsePlugin implements the sqlc plugin interface
func (*UsePlugin) Generate ¶
func (p *UsePlugin) Generate(_ context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error)
Generate implements the plugin.Plugin interface
Click to show internal directories.
Click to hide internal directories.