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
- Transaction committed successfully
- Connected
- Connecting
- ConnectionConfig
- Configuration for connection behavior
- ConnectionQuality
- ConnectionState
- Disconnected
- Dropped
- Event
- Base sealed class for all transaction events
- EventContext
- Context information for a table change event
- Failed
- Transaction failed with an error
- 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. - 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
- OutOfEnergy
- Pending
- PendingMutation
- Reconnecting
-
ReducerArgDecoder<
T> - ReducerCaller
-
ReducerDef<
A> - ReducerEmitter
- ReducerEvent
- Event triggered by a reducer execution
- ReducerRegistry
-
RowDecoder<
T> - SpacetimeDbConnection
- SubscribeAppliedEvent
- Event triggered by a subscription being applied
- 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, containing execution status and metadata.
- UnknownTransactionEvent
- UpdateStatus
- Status of a transaction update
Extensions
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})