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
Model-name analyzer — decision D10: Go models are the singular of the table name, derived by the deterministic inflector in the inflect package.
|
Model-name analyzer — decision D10: Go models are the singular of the table name, derived by the deterministic inflector in the inflect package. |
|
gen
|
|
|
golang
Package golang generates Go model structs from a checked DBML file — one struct per table, one string-typed enum per DBML enum, with db and json struct tags.
|
Package golang generates Go model structs from a checked DBML file — one struct per table, one string-typed enum per DBML enum, with db and json struct tags. |
|
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. |
|
Package rt is the runtime support package for code generated by dbml gen.
|
Package rt is the runtime support package for code generated by dbml gen. |
Click to show internal directories.
Click to hide internal directories.