Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
orm-gen
command
orm-gen errors: docs/spec/errors.yaml → one constants file per language, so every client names the same codes (docs/plans/execution/checklist.md T5.2).
|
orm-gen errors: docs/spec/errors.yaml → one constants file per language, so every client names the same codes (docs/plans/execution/checklist.md T5.2). |
|
Package complexquery runs the CPX-2 product query against its shared case fixture.
|
Package complexquery runs the CPX-2 product query against its shared case fixture. |
|
Package engine is the query planner: IR in, Plan out.
|
Package engine is the query planner: IR in, Plan out. |
|
dbspec
Package dbspec parses, validates and emits dbspec documents, the schema language that docs/spec/dbspec.md specifies.
|
Package dbspec parses, validates and emits dbspec documents, the schema language that docs/spec/dbspec.md specifies. |
|
dialect
Package dialect renders the database-specific pieces of SQL.
|
Package dialect renders the database-specific pieces of SQL. |
|
internal/meet
Package meet holds the one table of which two columns compare alike on the three databases.
|
Package meet holds the one table of which two columns compare alike on the three databases. |
|
ir
Package ir defines the wire form clients send (JSON, docs/spec/protocol.md) and validates it against the manifest.
|
Package ir defines the wire form clients send (JSON, docs/spec/protocol.md) and validates it against the manifest. |
|
plan
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. |
|
planner
Package planner turns a validated IR request into a Plan.
|
Package planner turns a validated IR request into a Plan. |
|
runtimemodel
Package runtimemodel builds the runtime model of a dbspec document set (docs/spec/dbspec.md, "Runtime model").
|
Package runtimemodel builds the runtime model of a dbspec document set (docs/spec/dbspec.md, "Runtime model"). |
|
Package generator writes the Go models of a dbspec document set; the orm-gen command and other programs call it.
|
Package generator writes the Go models of a dbspec document set; the orm-gen command and other programs call it. |
|
internal
|
|
|
benchset
Package benchset installs the bench set for the tests that use its generated model.
|
Package benchset installs the bench set for the tests that use its generated model. |
|
conformance
command
Conformance runner (Go).
|
Conformance runner (Go). |
|
dbspec/apply
command
Command go applies the chain of plans.json (tests/dbspec/plans.json; create-from-empty and rename-table-and-column) to one database with the Go engine (docs/spec/plans.md "Apply").
|
Command go applies the chain of plans.json (tests/dbspec/plans.json; create-from-empty and rename-table-and-column) to one database with the Go engine (docs/spec/plans.md "Apply"). |
|
dbspec/compare
command
Command go prints the Go dbspec results for all shared cases, stress documents, statement vectors, plan vectors, and Mermaid vectors in the line format of tests/dbspec/compare/check.mts.
|
Command go prints the Go dbspec results for all shared cases, stress documents, statement vectors, plan vectors, and Mermaid vectors in the line format of tests/dbspec/compare/check.mts. |
|
dbspec/database
Package database opens the databases of the dbspec tools by URI.
|
Package database opens the databases of the dbspec tools by URI. |
|
dbspec/introspect
command
Command go introspects one database with the Go engine and writes it in the output format of tests/dbspec/introspect: the canonical document on stdout and the unsupported object lines "! kind<TAB>table<TAB>name", and on stderr a "reason ..." line per unsupported object and an "elapsed <ms>" line.
|
Command go introspects one database with the Go engine and writes it in the output format of tests/dbspec/introspect: the canonical document on stdout and the unsupported object lines "! kind<TAB>table<TAB>name", and on stderr a "reason ..." line per unsupported object and an "elapsed <ms>" line. |
|
dbspec/plancases
Package plancases reads the cases of tests/dbspec/plans.json, the plan vectors that the dbspec apply tool and the physical dialect tests share.
|
Package plancases reads the cases of tests/dbspec/plans.json, the plan vectors that the dbspec apply tool and the physical dialect tests share. |
|
dialects
Package dialects holds the schema dialect fact probes of docs/spec/dialects.md.
|
Package dialects holds the schema dialect fact probes of docs/spec/dialects.md. |
|
recipe
Package recipe runs the cases of a recipe (docs/spec/feature-coverage.md FCV-2 to FCV-4) in Go: the entry of each suite unit, TestRecipe<Recipe><Database>, starts its case with packages/go/testcase and calls Run with the recipe and the database, and Run runs each case as a subtest whose steps call the public API of the orm package that each op names.
|
Package recipe runs the cases of a recipe (docs/spec/feature-coverage.md FCV-2 to FCV-4) in Go: the entry of each suite unit, TestRecipe<Recipe><Database>, starts its case with packages/go/testcase and calls Run with the recipe and the database, and Run runs each case as a subtest whose steps call the public API of the orm package that each op names. |
|
stmtevent
Package stmtevent is the statement event record of docs/operations/usage.md "Statement events", as the conformance vectors and the ORM tests write it.
|
Package stmtevent is the statement event record of docs/operations/usage.md "Statement events", as the conformance vectors and the ORM tests write it. |
|
symbols
command
Go symbol extractor of tests/interfaces/check: prints the declarations of the Go files under the given roots as one JSON object of symbol to signature, read from Go's own syntax trees (go/parser, go/printer) without executing code.
|
Go symbol extractor of tests/interfaces/check: prints the declarations of the Go files under the given roots as one JSON object of symbol to signature, read from Go's own syntax trees (go/parser, go/printer) without executing code. |
|
testdb
Package testdb creates the database that one database case uses alone (the case database).
|
Package testdb creates the database that one database case uses alone (the case database). |
|
testmodel
Package testmodel loads the runtime model of a dbspec document for the tests of the engine and the generator.
|
Package testmodel loads the runtime model of a dbspec document for the tests of the engine and the generator. |
|
Package orm is the Go client runtime.
|
Package orm is the Go client runtime. |
|
pg
Package pg registers the PostgreSQL driver with the executor.
|
Package pg registers the PostgreSQL driver with the executor. |
|
sqlite
Package sqlite registers the SQLite driver with the executor.
|
Package sqlite registers the SQLite driver with the executor. |
|
Package procevent waits for process exit and directory changes through OS notifications.
|
Package procevent waits for process exit and directory changes through OS notifications. |
|
Package testcase contains shared assertions for the native Go test harness.
|
Package testcase contains shared assertions for the native Go test harness. |
Click to show internal directories.
Click to hide internal directories.