Coverage / crates/spectra-core/src/projections.rs 100.0%
13 of 13 lines run, 2 of 4 functions · run #24 on main · run missed
| 1 | //! Projections (spec §9.3): tables kept from the ledger in the same | |
| 2 | //! transaction as each append, and rebuilt from it by `spectra admin | |
| 3 | //! rebuild`. Every table here must be a function of the events alone; the | |
| 4 | //! test harness and `spectra admin check` hold them to it. | |
| 5 | | |
| 6 | use crateEvent; | |
| 7 | use SqliteConnection; | |
| 8 | ||
| 9 | /// The projection tables, in the order they are cleared and compared. | |
| 10 | pub const TABLES: & = & | |
| 11 | | |
| 12 | | |
| 13 | | |
| 14 | | |
| 15 | | |
| 16 | | |
| 17 | | |
| 18 | | |
| 19 | | |
| 20 | | |
| 21 | | |
| 22 | | |
| 23 | ; | |
| 24 | ||
| 25 | /// Apply one event to every projection. | |
| 26 | 42619× | pub async |
| 27 | 42619× | |
| 28 | 42619× | |
| 29 | 42619× | |
| 30 | 42619× | |
| 31 | 42619× | |
| 32 | 42619× | |
| 33 | 42619× | |
| 34 | 42619× | |
| 35 | 42619× | |
| 36 | 42619× | |
| 37 | 42619× | |