compile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package compile lowers prepared DQL into normalized transcribe plans.

Index

Constants

View Source
const (
	CodeSQLParse            = "DQL-SQL-PARSE"
	CodeRelationMissingOn   = "DQL-REL-MISSING-ON"
	CodeRelationUnsupported = "DQL-REL-UNSUPPORTED"
	CodeRelationAmbiguous   = "DQL-REL-AMBIGUOUS"
	CodeViewDirective       = "DQL-VIEW-DIRECTIVE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code   string
	Offset int
	End    int
	Cause  error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type ReadInput

type ReadInput struct {
	View        *spec.View
	SQL         string
	Template    TemplateFrame
	Types       *typecatalog.Resolver
	TypeContext *spec.TypeContext
}

ReadInput is the normalized parser product consumed by read compilation.

type Reader

type Reader struct{}

func NewReader

func NewReader() *Reader

func (*Reader) Compile

func (r *Reader) Compile(input ReadInput) (*spec.View, error)

type TemplateFrame

type TemplateFrame struct {
	Prefix string
	Suffix string
}

TemplateFrame is the parser-owned template envelope around SQL.

Jump to

Keyboard shortcuts

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