dynamicsql

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func Run

func Run(opts Options) error

func SetInterfaceBinder added in v1.0.5

func SetInterfaceBinder(binder InterfaceBinder)

SetInterfaceBinder overrides the default interface binding behavior used during dynamic SQL generation. Passing nil resets the default behavior which only registers basic CRUD methods.

Types

type InterfaceBinder added in v1.0.5

type InterfaceBinder func(*gen.Generator, []interface{})

InterfaceBinder controls how query interfaces are attached to generated models.

type Options

type Options struct {
	Config string
	Table  string

	OutPath  string
	ModelPkg string
	JSONTag  string

	WithContext  bool
	WithUnitTest bool

	FieldNullable     bool
	FieldCoverable    bool
	FieldSignable     bool
	FieldWithIndexTag bool
	FieldWithTypeTag  bool
}

Jump to

Keyboard shortcuts

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