mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-13 11:17:50 -04:00
0b904ad9cf
# Description of Changes Patch: 1. `crates/lib/src/db/raw_def/v10.rs` - a definition as per https://github.com/clockworklabs/SpacetimeDBPrivate/issues/2412. 2. Refactors `RawModuleDefV9` validation code to dedup some of the core validation logic, No functionality should change there. 3. Validation logic for new `RawModuleDefV10`. 4. Modify `crates::schema::def::ModuleDef` : - To include `raw_module_def_version` - `visibility` field to existing `RedcuerDef` and `ProcedureDef` 5. It deprecates RLS in favour of Views, If anyoine feel otherwise, let me know. Lot of code is duplicated from `RawModuleDefV9` includng tests. # API and ABI breaking changes NA, `RawModuleDefV10` is not yet exported by modules. # Expected complexity level and risk 3? close analyses of structure is important to ensure future extensibility. # Testing For code motion in `RawModuleDefV9` validation: Existing unit tests seems to cover any functionality change. For `RawModuleDefV10`: V9 test has been repeated with more `assert`s to check on `visibility`
⚠️ Internal Crate ⚠️
This crate is intended for internal use only. It is not stable and may change without notice.