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 ¶
Load은 manifest text로 runtime model을 만들어 dialect의 engine을 반환한다. 잘못된 manifest text는 SCHEMA_INVALID다.
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"). |
Click to show internal directories.
Click to hide internal directories.