Skip to content

Documentation / @super-line/server / CollectionRuntimeConfig

Interface: CollectionRuntimeConfig ​

Defined in: collections/types.ts:48

What a Collection is: the backends behind it and the contract-declared shape of what they hold.

Properties ​

checkReferences ​

checkReferences: boolean

Defined in: collections/types.ts:61

Opt-in advisory foreign-key checking on writes (no cascades).


crdtStore? ​

optional crdtStore?: CrdtCollectionStore

Defined in: collections/types.ts:52

The CRDT document backend. Separate by construction: a CRDT doc never joins a row batch.


defs ​

defs: Record<string, CollectionDef>

Defined in: collections/types.ts:54

Contract-declared collections, both families, keyed by name.


policies ​

policies: Record<string, unknown>

Defined in: collections/types.ts:59

Row + CRDT policies keyed by collection name. One map, two value shapes — the contract's crdt key decides which, and CollectionRuntimeConfig.defs is the discriminator.


store? ​

optional store?: CollectionStore

Defined in: collections/types.ts:50

The single row backend serving every row collection (one tx domain → atomic cross-collection batches).

Released under the MIT License.