Spacetime::TableCache(T)
Inherits Enumerable < Spacetime::AbstractTableCache < Reference < Object
Strongly-typed reactive client-side cache for a SpacetimeDB table T.
Automatically reconciles row insertions, deletions, and primary-key updates
from InitialSubscription, SubscribeApplied, and TransactionUpdate messages.
Constructors
Instance methods
[](pk) : T
Sourceall
Sourceapply_table_update(update : Protocol::TableUpdate) : Nil
Applies a Protocol::TableUpdate (from BSATN or SATS-JSON) and triggers reactive callbacks.
clear
Sourcecount
Sourceempty?
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
filter
Sourceon_delete
Sourceon_insert
Sourceon_update
Sourcetable_name
Source