v1.rs
benches/ashroot-overhead/src/domain/checked/memory/v1.rs
1//! Source generation; no future physical row is admitted through this schema.2use super::super::{rows::Data, schema::*};3use crate::model::{self, Id, Row};4use cdk_rsx_ashroot::*;5pub const POLICY: [u8; 32] = cdk_rsx_memory_abi::semantic_contract(6 "overhead-checked-v1",7 &[],8 &[9 super::super::schema::POLICY,10 cdk_rsx_source_policy::source_policy!("v1.rs"),11 ],12);13declare_table!(ReindexRows, P12, Row, cdk_rsx_ashroot::list![Ordered<Score0>]);14declare_table!(RecodeRows, P13, Row, FourIndexes);15declare_table!(ConsumeRows, P14, Row, FourIndexes);16declare_table!(RemovedRows, P15, Row, cdk_rsx_ashroot::list![Ordered<Score0>]);17declare_table!(18 ChildRows,19 P16,20 Row,21 cdk_rsx_ashroot::list![Foreign<Owner0,ReindexRows,Restrict>]22);23#[cfg(not(feature = "minima"))]24declare_table!(OwnedRows, P17, super::super::rows::OwnedV1, FourIndexes);25pub struct Spec;26impl DatabaseSpec for Spec {27 type Key = Id;28 #[cfg(not(feature = "minima"))]29 type Tables = cdk_rsx_ashroot::list![30 Zero,31 One,32 Four,33 UniqueRows,34 Sparse,35 Parents,36 CascadeRows,37 RestrictRows,38 NullableRows,39 Cycle,40 Composite,41 CustomRows,42 ReindexRows,43 RecodeRows,44 ConsumeRows,45 RemovedRows,46 ChildRows,47 OwnedRows48 ];49 #[cfg(feature = "minima")]50 type Tables = cdk_rsx_ashroot::list![51 Zero,52 One,53 Four,54 UniqueRows,55 Sparse,56 Parents,57 CascadeRows,58 RestrictRows,59 NullableRows,60 Cycle,61 Composite,62 CustomRows,63 ReindexRows,64 RecodeRows,65 ConsumeRows,66 RemovedRows,67 ChildRows68 ];69 const POLICY: [u8; 32] = POLICY;70}71pub type Memory = cdk_rsx_ashroot::Memory<Spec>;