feature

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(content string, dialect model.Dialect) (string, error)

Handler rewrites a feature invocation.

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry stores feature handlers by name.

func NewRegistry

func NewRegistry() *Registry

NewRegistry returns a registry containing queryc's built-in features.

func (*Registry) Convert

func (r *Registry) Convert(sql string, dialect model.Dialect) (string, error)

Convert scans `sql` and replaces feature calls with the returned SQL.

Jump to

Keyboard shortcuts

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