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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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