Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clockworklabs/SpacetimeDB
/ functions
Functions
27,764 in github.com/clockworklabs/SpacetimeDB
⨍
Functions
27,764
◇
Types & classes
9,245
↓ 1 callers
Method
add_legacy_subscriber_with_instance
Similar to [`Self::add_single_subscription_with_instance`], but for the legacy subscription API which uses a set of queries.
crates/core/src/subscription/module_subscription_actor.rs:1596
↓ 1 callers
Method
add_misc_export
(&mut self, misc_export: MiscModuleExport)
crates/lib/src/lib.rs:244
↓ 1 callers
Method
add_multi_subscription
( &self, host: Option<&ModuleHost>, sender: Arc<ClientConnectionSender>, auth:
crates/core/src/subscription/module_subscription_actor.rs:1275
↓ 1 callers
Method
add_multi_subscription_inner
( &self, instance: Option<&mut RefInstance<I>>, sender: Arc<ClientConnectionSender>,
crates/core/src/subscription/module_subscription_actor.rs:1427
↓ 1 callers
Method
add_multi_subscription_with_instance
Similar to [`Self::add_single_subscription_with_instance`], but for multiple queries.
crates/core/src/subscription/module_subscription_actor.rs:1312
↓ 1 callers
Function
add_native_aot_packages_to_csproj
Adds NativeAOT-LLVM package references to an existing C# .csproj file and creates NuGet.Config. This is called when `--native-aot` is specified during
crates/cli/src/subcommands/init.rs:1793
↓ 1 callers
Method
add_query
If this query has any join edges, add them to the map.
crates/core/src/subscription/module_subscription_manager.rs:450
↓ 1 callers
Function
add_reducer_procedure_ctx_to_err
Provided the schema for the database, decorate `error` with more helpful info about reducers and procedures.
crates/cli/src/subcommands/call.rs:261
↓ 1 callers
Method
add_row
(&mut self, row: Self::Row)
sdks/rust/src/client_cache.rs:614
↓ 1 callers
Method
add_server
( &mut self, host: String, protocol: String, ecdsa_public_key: Option<String>,
crates/cli/src/config.rs:219
↓ 1 callers
Method
add_single_subscription
( &self, host: Option<&ModuleHost>, sender: Arc<ClientConnectionSender>, auth:
crates/core/src/subscription/module_subscription_actor.rs:621
↓ 1 callers
Method
add_single_subscription_inner
( &self, instance: Option<&mut RefInstance<I>>, sender: Arc<ClientConnectionSender>,
crates/core/src/subscription/module_subscription_actor.rs:658
↓ 1 callers
Method
add_single_subscription_with_instance
Add a subscription for a single query with access to a module instance. The execution logic will always be called from the module's thread.
crates/core/src/subscription/module_subscription_actor.rs:646
↓ 1 callers
Method
add_then
( &self, name: String, callback: impl FnOnce(&super::ReducerEventContext, Result<Resu
templates/basic-rs/src/module_bindings/add_reducer.rs:55
↓ 1 callers
Method
add_then
( &self, name: String, callback: impl FnOnce(&super::ReducerEventContext, Result<Resu
templates/basic-cpp/src/module_bindings/add_reducer.rs:55
↓ 1 callers
Method
add_type_alias
(&mut self, type_alias: TypeAlias)
crates/lib/src/lib.rs:248
↓ 1 callers
Method
add_v2_subscription_inner
( &self, instance: Option<&mut RefInstance<I>>, sender: Arc<ClientConnectionSender>,
crates/core/src/subscription/module_subscription_actor.rs:1324
↓ 1 callers
Method
add_v2_subscription_with_instance
Similar to [`Self::add_single_subscription_with_instance`], but for multiple queries.
crates/core/src/subscription/module_subscription_actor.rs:1299
↓ 1 callers
Method
add_value
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/size_calculator.h:220
↓ 1 callers
Method
add_value
crates/bindings-cpp/include/spacetimedb/bsatn/size_calculator.h:220
↓ 1 callers
Method
adjust_initial_offset
If initial offset falls within a commit, adjust it to the commit boundary. Returns `true` if the initial offset is past `commit`. Returns `false` if
crates/commitlog/src/commitlog.rs:828
↓ 1 callers
Method
advance
Call `row_iter_bsatn_advance`, returning 0 if this iterator has been exhausted.
crates/bindings-typescript/src/server/runtime.ts:1089
↓ 1 callers
Method
advance
Move virtual time forward explicitly.
crates/runtime/src/sim/executor/mod.rs:304
↓ 1 callers
Method
advance_one_message
If a WebSocket message is waiting, process it and return `true`. If no WebSocket messages are in the queue, immediately return `false`. Called by the
sdks/rust/src/db_connection.rs:565
↓ 1 callers
Method
advance_one_message_blocking
(&self)
sdks/rust/src/db_connection.rs:634
↓ 1 callers
Function
agentLoop
( ctx: ReducerCtx<S>, agent: GameEnemyAiAgentState, agentTargetable: GameTargetableState, surroundingA
modules/benchmarks-ts/src/ia_loop.ts:252
↓ 1 callers
Function
agent_loop
Main agent loop processing
modules/benchmarks-cpp/src/ia_loop.cpp:347
↓ 1 callers
Function
agent_loop
( ctx: &ReducerContext, mut agent: GameEnemyAiAgentState, agent_targetable: GameTargetableState,
modules/benchmarks/src/ia_loop.rs:359
↓ 1 callers
Function
aggregateResults
(results: GradeResult[])
tools/llm-oneshot/scripts/summarize-grades.ts:246
↓ 1 callers
Method
algorithm
(&self)
crates/fs-utils/src/compression.rs:34
↓ 1 callers
Method
all_v1_clients
This returns all of the clients listening to a query. If a client has multiple subscriptions for this query, it will appear twice.
crates/core/src/subscription/module_subscription_manager.rs:241
↓ 1 callers
Method
alloc_blob_hash
(&mut self)
crates/table/src/page.rs:734
↓ 1 callers
Method
alloc_bytes_sink_id
(&mut self)
crates/core/src/host/wasmtime/wasm_instance_env.rs:229
↓ 1 callers
Method
alloc_bytes_source_id
(&mut self)
crates/core/src/host/wasmtime/wasm_instance_env.rs:221
↓ 1 callers
Method
alloc_fixed_len_from_freelist
(&mut self, fixed_row_size: Size)
crates/table/src/page.rs:1467
↓ 1 callers
Method
alloc_fixed_len_from_gap
(&mut self, fixed_row_size: Size)
crates/table/src/page.rs:1483
↓ 1 callers
Method
alloc_for_len
Allocates a linked-list of granules, in the var-len storage of the page, for a var-len object of `obj_len` bytes. Returns a [`VarLenRef`] pointing to
crates/table/src/page.rs:575
↓ 1 callers
Method
alloc_from_freelist
(&mut self)
crates/table/src/page.rs:838
↓ 1 callers
Method
alloc_from_gap
(&mut self)
crates/table/src/page.rs:852
↓ 1 callers
Method
allocate
Get a core for running database operations on, and store state in `self` necessary to move that database to a new core for load-balancing purposes. T
crates/core/src/util/jobs.rs:129
↓ 1 callers
Function
alpha_rename
When expanding a view, we must do an alpha conversion on the view definition. This involves renaming the table aliases before replacing the view refer
crates/expr/src/rls.rs:360
↓ 1 callers
Function
alpha_rename_fragments
This is the main driver of alpha conversion. For each expression that we alpha convert, we append a unique suffix to the names in that expression, wi
crates/expr/src/rls.rs:339
↓ 1 callers
Function
also_poll
Await `fut`, while also polling `also`.
crates/core/src/util/mod.rs:61
↓ 1 callers
Method
alter_event_table_row_type
( &mut self, table_id: TableId, column_schemas: Vec<ColumnSchema>, )
crates/datastore/src/locking_tx_datastore/mut_tx.rs:1226
↓ 1 callers
Method
alter_event_table_row_type
( &self, tx: &mut MutTx, table_id: TableId, column_schemas: Vec<ColumnSchema>,
crates/engine/src/relational_db.rs:1027
↓ 1 callers
Method
alter_event_table_row_type_mut_tx
( &self, tx: &mut MutTxId, table_id: TableId, column_schemas: Vec<ColumnSchema
crates/datastore/src/locking_tx_datastore/datastore.rs:306
↓ 1 callers
Method
alter_table_access
(&self, tx: &mut MutTx, name: &str, access: StAccess)
crates/engine/src/relational_db.rs:1005
↓ 1 callers
Method
alter_table_access_mut_tx
(&self, tx: &mut MutTxId, name: &str, access: StAccess)
crates/datastore/src/locking_tx_datastore/datastore.rs:276
↓ 1 callers
Method
alter_table_primary_key
Change the primary key of the table identified by `table_id`. Updates both the in-memory schema and the `st_table` system table. See: <https://github
crates/datastore/src/locking_tx_datastore/mut_tx.rs:1163
↓ 1 callers
Method
alter_table_primary_key
( &self, tx: &mut MutTx, name: &str, primary_key: Option<ColId>, )
crates/engine/src/relational_db.rs:1009
↓ 1 callers
Method
alter_table_primary_key_mut_tx
( &self, tx: &mut MutTxId, name: &str, primary_key: Option<ColId>, )
crates/datastore/src/locking_tx_datastore/datastore.rs:284
↓ 1 callers
Method
alter_table_row_type
Change the row type of the table identified by `table_id`. In practice, this should not error, as the update machinery should disallow any incompatib
crates/datastore/src/locking_tx_datastore/mut_tx.rs:1190
↓ 1 callers
Method
alter_table_row_type
( &self, tx: &mut MutTx, table_id: TableId, column_schemas: Vec<ColumnSchema>,
crates/engine/src/relational_db.rs:1018
↓ 1 callers
Function
anthropic_ctx_limit_tokens
Provider-specific context limits
tools/xtask-llm-benchmark/src/llm/segmentation.rs:91
↓ 1 callers
Function
anthropic_max_output_tokens
()
tools/xtask-llm-benchmark/src/llm/clients/anthropic.rs:233
↓ 1 callers
Method
any_step
(&self, f: impl Fn(&AutoMigrateStep) -> bool)
crates/schema/src/auto_migrate.rs:218
↓ 1 callers
Method
api_call_with_body
Makes an HTTP API call with an optional request body.
crates/smoketests/src/lib.rs:1682
↓ 1 callers
Method
append_all_inner
( &mut self, stream: &mut (impl AsyncBufRead + Unpin), current_segment: &mut CurrentSe
crates/commitlog/src/stream/writer.rs:272
↓ 1 callers
Function
append_to_file
Append content to a file.
crates/smoketests/tests/smoketests/quickstart.rs:25
↓ 1 callers
Method
apply
Apply this reservation to an arbitrary list of core ids. Returns the allocated cores in the order: - irq - reserved - databases - tokio_workers - ra
crates/core/src/startup.rs:241
↓ 1 callers
Function
applySplitMovement
( nowMicros: bigint, circles: Circle[], playerEntities: Entity[], circleDirections: Map<number, DbVect
demo/Blackholio/server-ts/src/index.ts:599
↓ 1 callers
Function
apply_category_filter
( bench_root: &Path, categories: Option<&HashSet<String>>, selectors: Option<&[String]>, )
tools/xtask-llm-benchmark/src/bin/llm_benchmark.rs:788
↓ 1 callers
Method
apply_diff
Apply all the deletes and inserts recorded in `diff`. Return a [`TableAppliedDiff`] which encodes the actual changes to rows present or deleted after
sdks/rust/src/client_cache.rs:269
↓ 1 callers
Function
apply_pk_join_mutation
(test: &Smoketest, mutation: &PkJoinMutation)
crates/smoketests/tests/smoketests/views.rs:1082
↓ 1 callers
Function
apply_pre_publish_if_needed
( mut builder: reqwest::RequestBuilder, client: &reqwest::Client, base_url: &str, name_or_iden
crates/cli/src/subcommands/publish.rs:755
↓ 1 callers
Method
apply_to
(self, opts: &mut spacetimedb_commitlog::Options)
crates/engine/src/persistence.rs:53
↓ 1 callers
Method
apply_to_client_cache
(&self, cache: &mut __sdk::ClientCache<RemoteModule>)
sdks/rust/tests/test-client/src/module_bindings/mod.rs:3108
↓ 1 callers
Method
approved
(self)
crates/cli/src/subcommands/login.rs:183
↓ 1 callers
Method
arg_seed_for
Returns a `DeserializeSeed` that can pull data from a `Deserializer` for `def`.
crates/schema/src/def.rs:416
↓ 1 callers
Method
args_bsatn
(&self)
sdks/rust/tests/test-client/src/module_bindings/mod.rs:1771
↓ 1 callers
Method
as_buf
(&self)
crates/commitlog/src/stream/common.rs:132
↓ 1 callers
Function
as_bytes
Strictly this would be unsafe, since it causes UB when applied to types that contain padding/`poison`, but it's a benchmark so who cares.
crates/table/benches/page_manager.rs:57
↓ 1 callers
Method
as_dyn_debug
Returns `self` as `&dyn Debug`.
crates/sats/src/array_value.rs:188
↓ 1 callers
Method
as_option
If this type is the standard option type, returns the type of the `some` variant. Otherwise, returns `None`.
crates/sats/src/algebraic_type.rs:217
↓ 1 callers
Method
as_reader
(&self)
crates/commitlog/src/stream/common.rs:136
↓ 1 callers
Method
as_result
If this type is the standard result type, returns the types of the `ok` and `err` variants. Otherwise, returns `None`.
crates/sats/src/algebraic_type.rs:228
↓ 1 callers
Method
as_str
(self)
crates/core/src/client/client_connection.rs:49
↓ 1 callers
Method
as_table
Generate a new [`Table`] representing this [`ServerConfig`].
crates/cli/src/config.rs:32
↓ 1 callers
Function
as_termtree
(tree: &DatabaseTree)
crates/cli/src/subcommands/delete.rs:113
↓ 1 callers
Function
assemble_rows
( config: &Config, server: Option<&str>, identities: Vec<Identity>, )
crates/cli/src/subcommands/list.rs:78
↓ 1 callers
Function
assertEqual
(a: T, b: T)
modules/sdk-test-procedure-ts/src/index.ts:133
↓ 1 callers
Function
assert_content_type_json
(content_type: headers::ContentType)
crates/client-api/src/routes/database.rs:359
↓ 1 callers
Function
assert_empty
Asserts that the map behaves consistently as an empty map.
crates/data-structures/src/small_map.rs:213
↓ 1 callers
Function
assert_has_person
(test: &Smoketest, name: &str, context: &str)
crates/smoketests/tests/smoketests/change_host_type.rs:67
↓ 1 callers
Function
assert_major_minor_version
(actual: &str, context: impl std::fmt::Display)
crates/smoketests/tests/smoketests/templates.rs:175
↓ 1 callers
Function
assert_ptrs_are
(map: &mut PointerMap, hash: RowHash, ptrs: &[RowPointer])
crates/table/src/pointer_map.rs:375
↓ 1 callers
Function
assert_roundtrips
Roundtrips `rust_val` via [`Serialize`] to the V8 representation and then back via [`DeserializeSeed`], asserting that it's the same as the passed val
crates/core/src/host/v8/ser.rs:263
↓ 1 callers
Function
assert_success
(output: &Output, context: &str)
crates/smoketests/tests/smoketests/cli/list.rs:14
↓ 1 callers
Method
assert_system_tables_match
(&self)
crates/datastore/src/locking_tx_datastore/datastore.rs:236
↓ 1 callers
Function
assert_table_empty
(tbl: T)
sdks/rust/tests/procedure-concurrency-client/src/test_handlers.rs:35
↓ 1 callers
Function
assert_table_empty
(tbl: T)
sdks/rust/tests/procedure-client/src/test_handlers.rs:38
↓ 1 callers
Function
assert_v2_tx_update_for_table
Pull a message from receiver and assert that it is a v2 `TransactionUpdate` with the expected rows for a single table in a single query set.
crates/core/src/subscription/module_subscription_actor.rs:2668
↓ 1 callers
Function
assign_query_view_primary_keys
(tables: &IdentifierMap<TableDef>, views: &mut IndexMap<Identifier, ViewDef>)
crates/schema/src/def/validate/v10.rs:1048
↓ 1 callers
Method
async_flush_entry
Asynchronously flushes the index entry starting at `offset` to the index file. On linux, the underlying `msync` is a documented no-op since the kerne
crates/commitlog/src/index/indexfile.rs:204
↓ 1 callers
Function
async_main
(db_cores: JobCores)
crates/standalone/src/main.rs:11
↓ 1 callers
Function
atomic_write
(file_path: &Path, data: String)
crates/fs-utils/src/lib.rs:29
↓ 1 callers
Function
attach_lifecycles_to_reducers
( reducers: &mut IndexMap<Identifier, ReducerDef>, lifecycles: Vec<(ReducerId, Lifecycle)>, )
crates/schema/src/def/validate/v10.rs:913
↓ 1 callers
Function
attach_schedules_to_tables
( tables: &mut HashMap<Identifier, TableDef>, schedules: Vec<(ScheduleDef, Identifier)>, )
crates/schema/src/def/validate/v10.rs:935
↓ 1 callers
Function
attach_view_primary_keys
Attach explicit view primary-key metadata from the raw V10 `ViewPrimaryKeys` section to validated [`ViewDef`]s. Entries in the raw section refer to v
crates/schema/src/def/validate/v10.rs:969
↓ 1 callers
Function
auto_migrate_constraints
( plan: &mut AutoMigratePlan, new_tables: &HashSet<&Identifier>, removed_tables: &HashSet<&Identif
crates/schema/src/auto_migrate.rs:1109
← previous
next →
7,701–7,800 of 27,764, ranked by callers