codegen library

Classes

AuthError
AuthTokenStore
Platform-agnostic interface for storing authentication tokens.
BsatnDecoder
Decodes BSATN (Binary Spacetime Algebraic Type Notation) format into Dart values
BsatnEncoder
Encodes Dart values into BSATN (Binary Spacetime Algebraic Type Notation) format
ClientCache
Main cache container for all subscribed tables.
Committed
Connected
Connecting
ConnectionConfig
ConnectionQuality
ConnectionState
Disconnected
Dropped
Event
Base sealed class for all transaction events.
EventContext
Context information for a table change event
Failed
FatalError
Identity
SpacetimeDB user identity
InMemoryOfflineStorage
InMemoryTokenStore
Default in-memory token storage.
Int64
An immutable 64-bit signed integer, in the range -2^63, 2^63 - 1. Arithmetic operations may overflow in order to maintain this range.
InternalError
JsonFileStorage
MutationHandler
MutationSyncer
MutationSyncResult
OfflineStorage
OidcHelper
Helper for OAuth/OIDC authentication flows with SpacetimeDB.
OptimisticChange
Represents a change to be applied optimistically to the local cache.
OptimisticEntry
OptimisticEvent
OptimisticStateManager
Pending
PendingMutation
Reconnecting
ReducerArgDecoder<T>
ReducerCaller
ReducerDef<A>
ReducerEmitter
ReducerEvent
ReducerRegistry
RowDecoder<T>
SpacetimeDbConnection
SubscribeAppliedEvent
SubscriptionManager
SyncState
TableCache<T>
TableDeleteEvent<T>
Event emitted when a row is deleted from a table
TableEvent<T>
Base sealed class for all table change events
TableEventSpec
TableInsertEvent<T>
Event emitted when a row is inserted into a table
TableUpdateEvent<T>
Event emitted when a row is updated in a table
TransactionBatch<T>
TransactionResult
Result of a reducer call.
UnknownTransactionEvent
UpdateStatus
Status of a reducer transaction.

Constants

kV2WsProtocol → const String
kV3WsProtocol → const String

Functions

nextOptimisticIntId() int
Generate a client-side temporary integer primary key for optimistic inserts. Returns a negative microsecond-timestamp so it cannot collide with server-assigned positive IDs.

Typedefs

SendReducer = Future<TransactionResult> Function(String reducerName, Uint8List args, {String? requestId})