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
↓ 6 callers
Method
_hasPendingRelease
(key: string)
crates/bindings-typescript/tests/connection_manager.test.ts:321
↓ 6 callers
Method
abort
(&self)
crates/runtime/src/lib.rs:126
↓ 6 callers
Method
add_definition
Add a definition. Not mutually recursive with anything. Does not detect cycles, those are left for `mark_allowed_cycles`, which is called after all de
crates/schema/src/type_for_generate.rs:513
↓ 6 callers
Method
add_lifecycle_reducer
Add a lifecycle reducer assignment to the module. The function must be a previously-added reducer.
crates/lib/src/db/raw_def/v10.rs:1144
↓ 6 callers
Method
add_subscription_v2
( &mut self, client: Client, queries: Vec<Query>, query_set_id: ClientQuerySet
crates/core/src/subscription/module_subscription_manager.rs:957
↓ 6 callers
Function
align_to
Aligns a `base` offset to the `required_alignment` (in the positive direction) and returns it. When `base` is already aligned, `base` will be returne
crates/sats/src/layout.rs:29
↓ 6 callers
Method
all_snapshots
(&self)
crates/snapshot/src/lib.rs:1092
↓ 6 callers
Method
and_
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/QueryBuilder/expr.h:206
↓ 6 callers
Function
assert
(cond: boolean)
modules/benchmarks-ts/src/synthetic.ts:155
↓ 6 callers
Function
assert_major_minor_patch_wildcard
(actual: &str, context: impl std::fmt::Display)
crates/smoketests/tests/smoketests/templates.rs:183
↓ 6 callers
Method
assert_matches_format_switch
(self, fs: &ws_v1::FormatSwitch<B, J>)
crates/core/src/client/client_connection.rs:56
↓ 6 callers
Method
assert_psql
Asserts that psql output matches the expected value.
crates/smoketests/src/lib.rs:1058
↓ 6 callers
Function
assert_roundtrips
Roundtrips `rust_val` via `ToValue` to the V8 representation and then back via `FromValue`, asserting that it's the same as the passed value.
crates/core/src/host/v8/to_value.rs:125
↓ 6 callers
Function
bench_custom
(g: &mut BenchmarkGroup<'_, WallTime>, name: &str, run: impl Fn(u64) -> Duration)
crates/bench/benches/index.rs:54
↓ 6 callers
Function
bench_delete_row
(group: Group<'_, '_>, val: R, name: &str)
crates/table/benches/page_manager.rs:587
↓ 6 callers
Function
bench_extract_row
(group: Group<'_, '_>, val: R, name: &str)
crates/table/benches/page_manager.rs:637
↓ 6 callers
Function
bench_insert_row
(group: Group<'_, '_>, val: R, name: &str)
crates/table/benches/page_manager.rs:536
↓ 6 callers
Method
bsatn_deserialize
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/timestamp.h:170
↓ 6 callers
Method
bsatn_deserialize
crates/bindings-cpp/include/spacetimedb/bsatn/uuid.h:408
↓ 6 callers
Function
calculateStats
(results: GradeResult[])
tools/llm-oneshot/scripts/summarize-grades.ts:225
↓ 6 callers
Function
call_reducer_json_out
(db: &str, reducer: &str, args: &[Value], host: Option<&str>)
tools/xtask-llm-benchmark/src/eval/scorers.rs:199
↓ 6 callers
Function
call_sync_typed_func
Invoke `typed_func` and assert that it doesn't yield. Main-lane instances are created with sync Wasmtime support and use [`TypedFunc::call`]. Procedu
crates/core/src/host/wasmtime/wasmtime_module.rs:223
↓ 6 callers
Function
clearRedoHistory
(ctx: any, canvasId: bigint)
tools/llm-oneshot/apps/paint-app/typescript/opus-4-5/spacetime/paint-app-20260109-164112/backend/spacetimedb/src/index.ts:193
↓ 6 callers
Method
cmp
(&self, other: &Self)
crates/table/src/table_index/mod.rs:335
↓ 6 callers
Function
collect_case
(case: Case, segs: impl Iterator<Item = &'a Identifier>)
crates/codegen/src/util.rs:48
↓ 6 callers
Function
collect_from_type
Helper function to recursively collect from a type
crates/codegen/src/unrealcpp.rs:5274
↓ 6 callers
Method
cols
(table_name: &'static str)
sdks/rust/tests/test-client/src/module_bindings/users_type.rs:28
↓ 6 callers
Method
cols
(table_name: &'static str)
crates/query-builder/src/lib.rs:73
↓ 6 callers
Function
comment_sql
(sql: str)
crates/sqltest/build_standard.py:34
↓ 6 callers
Function
connect_then
( test_counter: &Arc<TestCounter>, callback: impl FnOnce(&DbConnection) + Send + 'static, )
sdks/rust/tests/case-conversion-client/src/main.rs:76
↓ 6 callers
Function
convert
(msg: OneOffQueryResponseMessage<F>)
crates/core/src/client/messages.rs:755
↓ 6 callers
Function
cpp_http_test
(name: &str, module_code: &str)
crates/smoketests/tests/smoketests/http_routes.rs:1097
↓ 6 callers
Function
cpp_ty_fmt_blueprint_compatible
( module_prefix: &'a str, module: &'a ModuleDef, ty: &'a AlgebraicTypeUse, module_name: &'a st
crates/codegen/src/unrealcpp.rs:6679
↓ 6 callers
Method
create_index_mut_tx
(&self, tx: &mut Self::MutTx, index_schema: IndexSchema, is_unique: bool)
crates/datastore/src/locking_tx_datastore/datastore.rs:531
↓ 6 callers
Function
create_reader
(path: &Path, range: R)
crates/commitlog/tests/streaming/mod.rs:216
↓ 6 callers
Method
db
(&self)
sdks/rust/tests/procedure-concurrency-client/src/module_bindings/mod.rs:289
↓ 6 callers
Method
db
(&self)
sdks/rust/tests/procedure-client/src/module_bindings/mod.rs:298
↓ 6 callers
Function
deep_copy_ptr
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/algebraic_type.h:59
↓ 6 callers
Function
deep_copy_ptr
crates/bindings-cpp/include/spacetimedb/bsatn/algebraic_type.h:59
↓ 6 callers
Method
delete_by_rel_mut_tx
( &self, tx: &mut Self::MutTx, table_id: TableId, relation: impl IntoIterator<
crates/datastore/src/locking_tx_datastore/datastore.rs:617
↓ 6 callers
Method
delete_internal_skip_pointer_map
Deletes a row in the page manager without deleting it logically in the pointer map. # Safety `ptr` must point to a valid, live row in this table.
crates/table/src/table.rs:1211
↓ 6 callers
Method
deref_slice_mut
Get a mutable byte slice of wasm memory given a pointer and a length;
crates/core/src/host/wasmtime/mod.rs:340
↓ 6 callers
Function
derive_cat_task_from_file
(src: &str)
tools/xtask-llm-benchmark/src/eval/utils.rs:3
↓ 6 callers
Function
deserialize_from
Deserializes `T` as a SATS object from `deserializer: D` where `D` is a serde data format.
crates/sats/src/de/serde.rs:544
↓ 6 callers
Method
doc
Returns a preserving copy of [`Config`].
crates/cli/src/config.rs:654
↓ 6 callers
Method
ensure_disconnect_all_users
Ensures that `DisconnectAllUsers` is present in the plan. If it's already there, this is a no-op.
crates/schema/src/auto_migrate.rs:228
↓ 6 callers
Function
ensure_repo_root
()
tools/ci/src/util.rs:6
↓ 6 callers
Method
exclusive_ref
(&'a mut self)
crates/data-structures/src/slim_slice.rs:347
↓ 6 callers
Method
fallback_openrouter
Fall back to the OpenRouter client when a direct vendor client is not configured.
tools/xtask-llm-benchmark/src/llm/provider.rs:121
↓ 6 callers
Method
flush
(&mut self)
crates/commitlog/src/tests/partial.rs:234
↓ 6 callers
Method
flush_and_sync
Write all outstanding transaction records to disk and flush OS buffers. Equivalent to calling [`Self::flush`] followed by [`Self::sync`], but without
crates/commitlog/src/lib.rs:310
↓ 6 callers
Function
fmt_algebraic_type
Wraps the algebraic `ty` into a `Display`able. NOTE: You might ask: Why do we have a formatter and a notation for `AlgebraicType`s if we don't have a
crates/sats/src/algebraic_type/fmt.rs:15
↓ 6 callers
Method
generate_entry_specific
Mark this key as generate-entry-specific. These keys (like `language`, `out_dir`) only make sense when a single generate entry is targeted. If multipl
crates/cli/src/spacetime_config.rs:631
↓ 6 callers
Method
get
(&self)
crates/client-api-messages/src/energy.rs:25
↓ 6 callers
Method
get
TODO(perf, deep-integration): Make this unsafe. Add the following to the docs: # Safety `pointer` must refer to a row within the table at `table_id`
crates/datastore/src/locking_tx_datastore/tx_state.rs:208
↓ 6 callers
Function
getNextSequenceNum
(ctx: any, canvasId: bigint)
tools/llm-oneshot/apps/paint-app/typescript/opus-4-5/spacetime/paint-app-20260109-164112/backend/spacetimedb/src/index.ts:170
↓ 6 callers
Function
getQueryAccessorName
(query: any)
crates/bindings-typescript/src/lib/query.ts:992
↓ 6 callers
Function
getQueryWhereClause
(query: any)
crates/bindings-typescript/src/lib/query.ts:1002
↓ 6 callers
Method
get_index_by_id
Returns the [`TableIndex`] for this [`IndexId`].
crates/table/src/table.rs:1565
↓ 6 callers
Function
get_index_patterns
Common index name patterns for different constraint types
crates/bindings-cpp/include/spacetimedb/table_with_constraints.h:27
↓ 6 callers
Function
get_repo_root
()
crates/cli/build.rs:476
↓ 6 callers
Method
get_schema
(&self, table_id: TableId)
crates/datastore/src/locking_tx_datastore/tx.rs:92
↓ 6 callers
Method
get_slice
(&mut self, len: usize)
crates/sats/src/bsatn/de.rs:31
↓ 6 callers
Function
get_type_name_for_result
Helper function to get the type name component for result types
crates/codegen/src/unrealcpp.rs:5813
↓ 6 callers
Method
gt
(x: any)
crates/bindings-typescript/src/lib/query.ts:531
↓ 6 callers
Function
has
(v?: string)
templates/keynote-2/src/init/utils.ts:5
↓ 6 callers
Method
has_subscribers
(&self)
crates/core/src/subscription/module_subscription_manager.rs:236
↓ 6 callers
Method
has_unqualified_vars
(&self)
crates/sql-parser/src/ast/mod.rs:17
↓ 6 callers
Function
hash_bsatn_int_seq
Hashes the BSATN-encoded integer sequence where each integer is `width` bytes wide. The sequence is prefixed with its length and the hash will as well
crates/sats/src/algebraic_value_hash.rs:212
↓ 6 callers
Function
head
Build a [Header] using the initial `start_pos` as the column position for the [Constraints]
crates/schema/src/relation.rs:301
↓ 6 callers
Function
identity
* @brief Create an Identity type (256-bit identifier). * * Identity is represented as an array of 32 bytes (U8[32]). * * @return
crates/bindings-cpp/include/spacetimedb/bsatn/type_extensions.h:279
↓ 6 callers
Function
init
()
crates/testing/tests/standalone_integration_test.rs:12
↓ 6 callers
Method
insert_function
(&mut self, source_name: impl Into<RawIdentifier>, canonical_name: impl Into<RawIdentifier>)
crates/lib/src/db/raw_def/v10.rs:201
↓ 6 callers
Function
insert_procedure_concurrency_row
(ctx: &TxContext, insertion_context: &str)
modules/sdk-test-procedure-concurrency/src/lib.rs:13
↓ 6 callers
Function
instance_env
An `InstanceEnv` used for testing the database syscalls.
crates/core/src/host/instance_env.rs:1389
↓ 6 callers
Method
into_tuple_for_def
( self, module: &ModuleDef, def: &Def, )
crates/core/src/host/mod.rs:45
↓ 6 callers
Method
is_err
* @brief Check if this Result contains an error value. * @return true if this is err, false if ok */
crates/bindings-cpp/include/spacetimedb/bsatn/result.h:89
↓ 6 callers
Method
is_uuid
Returns whether this is the special case of [`crate::uuid::Uuid`].
crates/sats/src/product_type.rs:169
↓ 6 callers
Method
iter_mut
Returns a mutable iterator over the errors in the stream.
crates/data-structures/src/error_stream.rs:159
↓ 6 callers
Function
iter_tables
Iterate over all the [`TableDef`]s defined by the module, in alphabetical order by name. Sorting is necessary to have deterministic reproducible code
crates/codegen/src/util.rs:142
↓ 6 callers
Method
iter_tx
(&'a self, tx: &'a Self::Tx, table_id: TableId)
crates/datastore/src/locking_tx_datastore/datastore.rs:388
↓ 6 callers
Method
kickUser
(roomId: number, userId: string)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-180000/client/src/api.ts:114
↓ 6 callers
Method
kind
(&self)
crates/cli/src/subcommands/call.rs:58
↓ 6 callers
Method
kind
(&self)
crates/sats/src/de/impls.rs:75
↓ 6 callers
Method
len
Returns the number of bytes the granule contains.
crates/table/src/var_len.rs:224
↓ 6 callers
Function
log
* @brief Simple logging without caller information (optimized). * @param level The severity level of the message. * @param message The message to lo
crates/bindings-cpp/include/spacetimedb/logger.h:82
↓ 6 callers
Function
make_reducer_call_both_scorer
( host_url: &str, src_file: &str, route_tag: &str, reducer: &str, args: Vec<serde_json::Va
tools/xtask-llm-benchmark/src/eval/defaults.rs:101
↓ 6 callers
Function
map_array
(a: [A; N])
crates/datastore/src/locking_tx_datastore/datastore.rs:1142
↓ 6 callers
Method
ne
crates/bindings-cpp/include/spacetimedb/query_builder/expr.h:332
↓ 6 callers
Method
nest
(path: string, subRouter: Router)
crates/bindings-typescript/src/server/http_handlers.ts:308
↓ 6 callers
Method
new_uuid_v7
(&self)
crates/bindings/src/lib.rs:1149
↓ 6 callers
Method
next_idle_deadline
(&self)
crates/client-api/src/routes/subscribe.rs:349
↓ 6 callers
Function
nonEmptyTrimmed
( name: string, value: unknown, maxLen: number )
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/server/src/validate.ts:15
↓ 6 callers
Function
normalizeRoute
(route)
docs/scripts/rewrite-doc-links.mjs:58
↓ 6 callers
Function
normalizeText
(s: string)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/backend/spacetimedb/src/index.ts:28
↓ 6 callers
Function
normalizeValue
(val: ValueInput<any>)
crates/bindings-typescript/src/lib/query.ts:657
↓ 6 callers
Method
observe
(&self, duration: std::time::Duration)
crates/core/src/host/module_host.rs:1319
↓ 6 callers
Method
offset_of_tag
(&self)
crates/sats/src/layout.rs:892
↓ 6 callers
Function
open_db
(engine: DbType)
crates/sqltest/src/main.rs:126
↓ 6 callers
Function
open_snapshot_repo
Open a [`SnapshotRepository`] at `db_path/snapshots`, configured to store snapshots of the database `database_identity`/`replica_id`.
crates/engine/src/relational_db.rs:1792
← previous
next →
1,401–1,500 of 27,764, ranked by callers