Repository navigation
Commit d4c7157
authored
feat(native): discover models natively behind the compiler engine switch (#995)
* feat(native): discover SQL model files natively behind the compiler engine switch
Add the sqlbuild-discovery crate with a parallel directory walk that keeps
Python's glob and sort semantics, and native reading and parsing of SQL model
files with Python's exact discovery messages, locations and ordering.
With SQLBUILD_COMPILER_ENGINE=native the discovery stage takes its model
files from the native walk; every other collection still runs in Python.
Native discovery skips the Python discovery fact cache.
* fix(native): defer model discovery to Python when it cannot match exactly
Run the Python path when the running Python's Unicode database differs from
the native character table or the project root is not UTF-8, and share the
native models walk with the pass's directory snapshot.
* test(compiler): pass every frontier stage through the perturbation hooks1 parent 3f13bc3 commit d4c7157
90 files changed
Lines changed: 3927 additions & 77 deletions
File tree
- crates
- sqlbuild-core/src/text
- _helpers
- main
- tests
- sqlbuild-discovery
- src
- _helpers
- model_files
- _helpers
- main
- tests
- tree
- _helpers
- main
- tests
- sqlbuild-python
- src/bindings
- _helpers
- sqlbuild-sqltext/src/compiler
- _helpers/model_headers
- main
- scripts
- python_char_table
- _helpers
- main
- src/sqlbuild
- compiler
- discovery
- _helpers
- filesystem
- native
- sql
- classes
- main
- frontier
- _helpers
- main
- tests
- e2e/scripts/compiler_differential
- integration/src/sqlbuild/compiler
- discovery
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments