Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
nao
command
Command nao ("not an ORM") is the one binary of the project (D41): the CLI front end over the edbml/ language packages plus the generators, built on urfave/cli:
|
Command nao ("not an ORM") is the one binary of the project (D41): the CLI front end over the edbml/ language packages plus the generators, built on urfave/cli: |
|
edbml
|
|
|
ast
Package ast declares the types used to represent DBML syntax trees, mirroring the role of go/ast.
|
Package ast declares the types used to represent DBML syntax trees, mirroring the role of go/ast. |
|
check
Package check implements semantic analysis of a parsed DBML file — the role go/types plays for Go.
|
Package check implements semantic analysis of a parsed DBML file — the role go/types plays for Go. |
|
diag
Package diag defines the diagnostic type shared by the parser, the semantic checker and vet analyzers, so each stage stays decoupled while producing a uniform stream of findings.
|
Package diag defines the diagnostic type shared by the parser, the semantic checker and vet analyzers, so each stage stays decoupled while producing a uniform stream of findings. |
|
lsp
Package lsp implements the EDBML language server.
|
Package lsp implements the EDBML language server. |
|
parser
Package parser turns DBML source into an ast.File, mirroring go/parser.
|
Package parser turns DBML source into an ast.File, mirroring go/parser. |
|
scanner
Package scanner tokenizes DBML source (spec §3), playing the role of go/scanner in the Go toolchain.
|
Package scanner tokenizes DBML source (spec §3), playing the role of go/scanner in the Go toolchain. |
|
token
Package token defines the lexical tokens of DBML and source positions, mirroring the role of go/token in the Go toolchain.
|
Package token defines the lexical tokens of DBML and source positions, mirroring the role of go/token in the Go toolchain. |
|
vet
Dynamic-layer name analyzer — feature DYN-7: the dynamic query layer (decisions D28-D30) mints package-scope Go names by concatenation (UserEmail, UserLimit), so distinct DBML declarations can demand one Go name.
|
Dynamic-layer name analyzer — feature DYN-7: the dynamic query layer (decisions D28-D30) mints package-scope Go names by concatenation (UserEmail, UserLimit), so distinct DBML declarations can demand one Go name. |
|
gen
|
|
|
golang
Dynamic-query generation (nao_dyn.go): the v2 surface of Not an ORM (decisions D28-D34).
|
Dynamic-query generation (nao_dyn.go): the v2 surface of Not an ORM (decisions D28-D34). |
|
sqlite
Package sqlite generates SQLite DDL (nao_schema.sql) from a checked DBML file: CREATE TABLE per table, CREATE INDEX per non-pk index, and INSERT statements from records.
|
Package sqlite generates SQLite DDL (nao_schema.sql) from a checked DBML file: CREATE TABLE per table, CREATE INDEX per non-pk index, and INSERT statements from records. |
|
Package inflect derives the singular model name from a plural table name (decision D10).
|
Package inflect derives the singular model name from a plural table name (decision D10). |
|
Package itest contains data models generated from schema.dbml.
|
Package itest contains data models generated from schema.dbml. |
|
The dynamic query layer (decisions D28-D34): predicates, orderings, limits and assignments as inert data — plain values forming a small expression tree, never closures and never a mutable builder.
|
The dynamic query layer (decisions D28-D34): predicates, orderings, limits and assignments as inert data — plain values forming a small expression tree, never closures and never a mutable builder. |
Click to show internal directories.
Click to hide internal directories.