Files
Shubham Mishra 0b904ad9cf [1/3] RawModuleDefV10 definition and validation. (#4098)
# 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`
2026-01-28 12:30:52 +00:00
..
2025-12-08 19:33:02 +00:00