plugin

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 7 Imported by: 0

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 New

func New(analyzerFactory analyzer.Factory, formatterImpl formatter.Formatter) *UsePlugin

New creates a new UsePlugin instance

func (*UsePlugin) Generate

Generate implements the plugin.Plugin interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL