Help us shape the future of Go! Take the 2026 Go Developer Survey

processors

package
v1.20.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataBool

func MetadataBool(value any) bool

MetadataBool preserves the truthiness of scalar values returned by metadata queries.

func MetadataColumns

func MetadataColumns(value any) []string

MetadataColumns normalizes catalog column lists for external processors.

func MetadataInt

func MetadataInt(value any) int

MetadataInt normalizes a scalar catalog value for external processors.

func MetadataString

func MetadataString(value any) string

MetadataString converts a database metadata scalar to text, including byte slices.

func NullableComment

func NullableComment(value any) any

NullableComment normalizes absent or empty metadata comments.

Types

type BaseProcessor

type BaseProcessor struct{}

BaseProcessor ports Illuminate\Database\Query\Processors\Processor's insert-ID path.

func (*BaseProcessor) ProcessColumns

func (p *BaseProcessor) ProcessColumns(results []Row, sql ...string) []Row

ProcessColumns ports the base processor's identity transformation.

func (*BaseProcessor) ProcessForeignKeys

func (p *BaseProcessor) ProcessForeignKeys(results []Row) []Row

func (*BaseProcessor) ProcessIndexes

func (p *BaseProcessor) ProcessIndexes(results []Row) []Row

func (*BaseProcessor) ProcessInsertGetID

func (p *BaseProcessor) ProcessInsertGetID(connection Connection, statement string, values []any, sequence string) (any, error)

func (*BaseProcessor) ProcessSchemas

func (p *BaseProcessor) ProcessSchemas(results []Row) []Row

func (*BaseProcessor) ProcessSelect

func (p *BaseProcessor) ProcessSelect(results any) any

func (*BaseProcessor) ProcessTables

func (p *BaseProcessor) ProcessTables(results []Row) []Row

func (*BaseProcessor) ProcessTypes

func (p *BaseProcessor) ProcessTypes(results []Row) []Row

func (*BaseProcessor) ProcessViews

func (p *BaseProcessor) ProcessViews(results []Row) []Row

type Connection

type Connection = contractsquery.Connection

type Processor

type Processor = contractsquery.Processor

func New

func New(_ string) Processor

New selects the processor without importing a concrete query or schema builder.

type Row

type Row = contractsquery.Row

Compatibility aliases preserve the existing processor API.

Jump to

Keyboard shortcuts

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