1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB
//! Trait and value-type contracts for every catalog object kind ReifyDB knows about.
//!
//! Each submodule defines the trait that downstream catalog implementations satisfy and the associated metadata types
//! for one logical kind (namespaces, tables, views, sources, sinks, series, ring buffers, flows, dictionaries, sum
//! types, handlers, procedures, migrations, policies, identities, tokens, and so on), plus the cross-cutting modules
//! for stable identifiers (`id`), key construction (`key`), on-disk layout (`layout`), change records (`change`),
//! configuration (`config`), and column properties (`property`).
//!
//! Invariant: introducing a new catalog object kind is a three-place change. The contract here, a new `KeyKind` byte in
//! `key/kind.rs`, and the typed key in `key/`, must be added together. Skipping any of the three leaves the catalog
//! inconsistent: an object with no on-disk identity, or a key with no contract, or a contract that no key can point at.