engine

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package engine is the query planner: IR in, Plan out. It is pure and stateless apart from the loaded runtime model; execution lives in the language-native executors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	M *runtimemodel.Model
	P *planner.Planner
}

Engine binds a runtime model to a dialect.

func Load

func Load(manifestText, dialectName string) (*Engine, error)

Load은 manifest text로 runtime model을 만들어 dialect의 engine을 반환한다. 잘못된 manifest text는 SCHEMA_INVALID다.

func New

func New(m *runtimemodel.Model, dialectName string) (*Engine, error)

New builds an engine for the given dialect name.

func (*Engine) Compile

func (e *Engine) Compile(irJSON []byte) ([]byte, error)

Compile validates the IR and returns the plan as JSON.

Directories

Path Synopsis
Package dbspec parses, validates and emits dbspec documents, the schema language that docs/dbspec.md specifies.
Package dbspec parses, validates and emits dbspec documents, the schema language that docs/dbspec.md specifies.
Package dialect renders the database-specific pieces of SQL.
Package dialect renders the database-specific pieces of SQL.
Package ir defines the wire form clients send (JSON, docs/protocol.md) and validates it against the manifest.
Package ir defines the wire form clients send (JSON, docs/protocol.md) and validates it against the manifest.
Package plan is what executors run: SQL text with bind slots and an assembly spec.
Package plan is what executors run: SQL text with bind slots and an assembly spec.
Package planner turns a validated IR request into a Plan.
Package planner turns a validated IR request into a Plan.
Package runtimemodel은 dbspec document set의 runtime model을 만든다 (docs/dbspec.md, "Runtime model").
Package runtimemodel은 dbspec document set의 runtime model을 만든다 (docs/dbspec.md, "Runtime model").

Jump to

Keyboard shortcuts

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