Static Readonly[Static ReadonlyastStatic ReadonlyContextStatic ReadonlyEncodedStatic ReadonlyTypeStatic ReadonlytypenameStatic ReadonlyversionMerges a set of new annotations with existing ones, potentially overwriting any duplicates.
Id of the ECHO object containing the schema.
Returns a mutable schema.
Short name of the schema.
Reference to the underlying persistent schema object.
Returns an immutable schema snapshot of the current state of the schema.
Called by DatabaseSchemaRegistry on update.
Rebuilds this schema if it is dirty.
StaticannotationsMerges a set of new annotations with existing ones, potentially overwriting any duplicates.
Staticpipe
Represents a schema that is persisted in the ECHO database. Schema can me mutable or readonly (specified by the EchoSchema.readonly field).
Schema that can be modified at runtime via the API. Is an instance of effect-schema (
Schema.Schema.AnyNoContext) so it can be used in the same way as a regular schema. IMPORTANT: The schema AST will change reactively when the schema is updated, including synced updates from remote peers.The class constructor is a schema instance itself, and can be used in the echo object definitions:
Example
The ECHO API will translate any references to PersistentSchema objects to be resolved as EchoSchema objects.