You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 893e5a5
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: move the front layer of the Python bindings into sqlbuild-python-front (#1516)
* refactor: move the front layer of the Python bindings into sqlbuild-python-front
Discovery, model configuration and headers, scopes, macro rendering and
authored values, SQL text, model attachment and the compile driver, cursors,
contract and refactor facts, and the consumption, observation and audit result
state tables move into a new crate between sqlbuild-python-base and
sqlbuild-python, one area per helper bucket. sqlbuild-python imports their
entry points directly; the extension module surface is unchanged.
* fix: keep the observation write and registration entries under the observation boundary
The observation boundary matched `observations_state` as a whole word, so the
`append_observations` and `register_observations_state` entries the front crate
exports, and the files that call them, fell outside it after the move. The
pattern now names both entries, and their callers are listed again.
Copy file name to clipboardExpand all lines: crates/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,15 @@ tested and benchmarked with `cargo test` alone.
29
29
|`sqlbuild-project`| The compiled project as plain Rust: `CompiledProject` with the producers' facts and each resource's records (model inputs and schemas, compiled models and their analysis, sources, functions, audits and seeds), and what those records answer without Python, such as lineage rows, resolved namespaces and dependency keys. Values the host owns, such as user config and discovered files, and the views it builds lazily live in one slot per record, whose types `sqlbuild-python` supplies through the `ProjectHost` trait; reads that need Python stay in the bindings as extension traits. |
30
30
|`sqlbuild-cli`| The `sqb` and `sqlbuild` executables: `--version`, unchanged compiles replayed from the shared reuse store with Python's exact streams, exit code and compute log capture, and a handoff of every other invocation to the installed `sqlbuild-python` script. Built as its own wheel (`crates/sqlbuild-cli/pyproject.toml`). |
31
31
|`sqlbuild-python-base`| The base of the PyO3 bindings: native record, enum and error classes with their specs, registration, construction and field reads; keyword calls, imports, conversions and panics at the Python boundary; host entry calls; the process allocator; and the shared runtime the binding modules build on: the native store, compile context, diagnostics, progress and terminal text, warehouse access and orchestration reads. |
32
-
|`sqlbuild-python`| The `_native` module: its Python classes and functions and the conversions from Python objects, on top of `sqlbuild-python-base`. |
32
+
|`sqlbuild-python-front`| The front of the compile pipeline as PyO3 bindings, on top of `sqlbuild-python-base`: project discovery, model configuration and headers, scopes, macro rendering and authored values, SQL text, model attachment and the compile driver, cursors, contract and refactor facts, and the warehouse state tables of consumption, observations and audit results. |
33
+
|`sqlbuild-python`| The `_native` module: its Python classes and functions and the conversions from Python objects, on top of `sqlbuild-python-front` and `sqlbuild-python-base`. |
33
34
34
35
## Layering
35
36
36
37
Dependencies point one way, from the top of this graph to the bottom:
0 commit comments