class

Spacetime::Schema::ModuleSchema

Inherits Reference < Object

Canonical V9 Module Schema (RawModuleDefV9) returned by /v1/database/:name/schema?version=9.

Constructors

decode_bsatn(decoder : BSATN::Decoder) : self
Source
from_json(json_str : String) : self
Source
from_sats_json(any : JSON::Any) : self
Source
new(typespace : SATS::Typespace = SATS::Typespace.empty, tables : Array(TableDef) = [] of TableDef, reducers : Array(ReducerDef) = [] of ReducerDef, types : Array(TypeDef) = [] of TypeDef)
Source

Instance methods

encode_bsatn(encoder : BSATN::Encoder) : Nil
Source
find_reducer(name : String) : ReducerDef | Nil
Source
find_table(name : String) : TableDef | Nil
Source
find_type(name : String) : TypeDef | Nil
Source
reducers
Source
reducers=(reducers : Array(ReducerDef))
Source
table_product_type(table_name : String) : SATS::ProductType | Nil
Source
tables
Source
tables=(tables : Array(TableDef))
Source
to_json
Source
to_sats_json(json : JSON::Builder) : Nil
Source
types
Source
types=(types : Array(TypeDef))
Source
typespace
Source
typespace=(typespace : SATS::Typespace)
Source