Cotton code
18 lines · 747 B · SwiftRaw
// A computed column: one whose value the core works out from other columns// and records instead of anyone writing it (`cotton-core`'s// `definitions/computed.rs`, which owns the shape and its validation).//// The app never works one out. It decodes the key so the two types name the// same keys, treats the column as read-only, and draws the value the core// answers like any other.import Foundation/// What a computed column is worked out from — exactly one shape: a value/// of the record a link points at (`lookup`), over the records of another/// table whose link points here (`rollup`), or over columns of the same/// record (`formula`).public typealias ColumnComputed = DefinitionComputedextension DefinitionComputed {}