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
↓ 2 callers
Function
time
(body: impl FnOnce())
crates/table/benches/pointer_map.rs:43
↓ 2 callers
Function
time
(acc: &mut Duration, body: impl FnOnce() -> R)
crates/table/benches/page_manager.rs:28
↓ 2 callers
Function
time_encode
Measure serialization/compression time for one websocket payload.
crates/client-api/src/routes/subscribe.rs:1784
↓ 2 callers
Method
timeout
Race a future against a virtual-time sleep. Uses a biased `poll_fn` that polls `future` before `sleep`. If both are ready in the same step, the main
crates/runtime/src/sim/time/mod.rs:132
↓ 2 callers
Method
timer
(&self)
crates/core/src/host/module_host.rs:1030
↓ 2 callers
Method
toBase64
()
crates/bindings-typescript/src/lib/binary_writer.ts:62
↓ 2 callers
Method
toBytes
Return a `Uint8Array` of 16 bytes.
crates/bindings-typescript/src/lib/uuid.ts:259
↓ 2 callers
Function
toHex
(bytes: Uint8Array)
crates/bindings-typescript/src/sdk/logger.ts:60
↓ 2 callers
Function
to_bsatn_vec
crates/bindings-cpp/include/spacetimedb/bsatn/size_calculator.h:169
↓ 2 callers
Method
to_duration_abs
Returns a `Duration` representing the absolute magnitude of `self`. Regardless of whether `self` is positive or negative, the returned `Duration` is
crates/sats/src/time_duration.rs:54
↓ 2 callers
Method
to_duration_from
(&self, from: Timestamp)
crates/lib/src/scheduler.rs:35
↓ 2 callers
Method
to_duration_since_unix_epoch
Returns `Err(duration_before_unix_epoch)` if `self` is before `Self::UNIX_EPOCH`.
crates/sats/src/timestamp.rs:61
↓ 2 callers
Method
to_header
(&self)
crates/cli/src/util.rs:193
↓ 2 callers
Function
to_rows
( stmt: SqlStmtResult<ProductValue>, header: Arc<Vec<FieldInfo>>, )
crates/pg/src/pg_server.rs:71
↓ 2 callers
Method
to_slot_index
Returns the index for the slot that holds the module function hook. The index is passed to `v8::Context::{get,set}_embedder_data`.
crates/core/src/host/v8/syscall/hooks.rs:94
↓ 2 callers
Method
to_u32
(self)
crates/lib/src/lib.rs:92
↓ 2 callers
Method
to_uuid
Convert to the `uuid` crate's `Uuid` type.
crates/sats/src/uuid.rs:230
↓ 2 callers
Function
to_wire_headers
* @brief Convert user-facing header vector to wire format HttpHeaders */
crates/bindings-cpp/include/spacetimedb/http_convert.h:180
↓ 2 callers
Function
to_wire_split
crates/bindings-cpp/include/spacetimedb/http_convert.h:277
↓ 2 callers
Method
to_writer
(self, buf: &mut Vec<u8>)
crates/bindings/src/rt.rs:345
↓ 2 callers
Method
today
(self)
crates/paths/src/server.rs:153
↓ 2 callers
Function
toggleReaction
( messageId: number, emoji: string )
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/client/src/api.ts:160
↓ 2 callers
Function
too_many_rows_for_scan_do
( committed_state: &CommittedState, num_rows: u64, table_id: TableId, cols: &ColList, logi
crates/datastore/src/locking_tx_datastore/mut_tx.rs:3531
↓ 2 callers
Method
total_duration
(&self)
crates/core/src/host/wasm_common/module_host_actor.rs:263
↓ 2 callers
Method
trace
crates/bindings-cpp/include/spacetimedb/http.h:65
↓ 2 callers
Method
trailing_zeros
(self)
crates/table/src/fixed_bit_set.rs:49
↓ 2 callers
Method
transactions_from
( &self, offset: u64, decoder: &'a D, )
crates/commitlog/src/commitlog.rs:326
↓ 2 callers
Function
transactions_from_internal
( commits: CommitsWithVersion<R>, offset: u64, de: &'a D, )
crates/commitlog/src/commitlog.rs:600
↓ 2 callers
Function
transfer_fuel_total
(server_url: &str)
tools/ci/src/keynote_bench.rs:251
↓ 2 callers
Function
traverse_product
(val: &ProductValue, count: &mut usize)
crates/table/src/bflatn_to.rs:529
↓ 2 callers
Function
trim_timestamp_fraction
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/QueryBuilder/expr.h:72
↓ 2 callers
Function
try_find_column
(cols: &'a [Column<'b>], name: &T)
crates/bindings-macro/src/table.rs:744
↓ 2 callers
Method
try_hardlink_from
Hardlink the entry for `file_id` from `src_repo` into `self`. Hardlinking makes the object shared between both [`DirTrie`]s without copying the data
crates/fs-utils/src/dir_trie.rs:121
↓ 2 callers
Method
try_init_host
(&self, database: Database, replica_id: u64)
crates/core/src/host/host_controller.rs:637
↓ 2 callers
Method
try_insert
(&self, row: Self::Row)
crates/bindings/src/table.rs:89
↓ 2 callers
Method
try_page_and_offset
(&self, ptr: RowPointer)
crates/table/src/table.rs:193
↓ 2 callers
Function
try_seek_using_offset_index
Try to advance `reader` to `offset` using the offset index. If successful, returns the offset index and the byte position of `reader`. `None` if the
crates/commitlog/src/commitlog.rs:1009
↓ 2 callers
Function
try_with_tx
crates/bindings-cpp/include/spacetimedb/internal/tx_execution.h:123
↓ 2 callers
Function
try_with_tx
We need to passthrough identity and connection_id because procedures can be invoked by users. For [HttpContext] this is always anonymous ([Identity::Z
crates/bindings/src/lib.rs:1186
↓ 2 callers
Method
try_with_tx
Acquire a mutable transaction and execute `body` with read-write access to the database. When `body` returns `Ok`, the transaction will be committed
crates/bindings/src/lib.rs:1406
↓ 2 callers
Method
tx_offset
(&self)
crates/paths/src/server.rs:237
↓ 2 callers
Method
tx_range
The range of transaction offsets contained in this commit.
crates/commitlog/src/commit.rs:150
↓ 2 callers
Function
tx_result_should_commit
crates/bindings-cpp/include/spacetimedb/internal/tx_execution.h:22
↓ 2 callers
Method
tx_slot
(&self)
crates/core/src/host/wasmtime/wasmtime_module.rs:612
↓ 2 callers
Method
ty_s
(&self)
crates/sats/src/lib.rs:141
↓ 2 callers
Method
type
()
crates/bindings-typescript/src/server/http_shared.ts:151
↓ 2 callers
Function
type_limit
Type check a LIMIT clause
crates/expr/src/lib.rs:41
↓ 2 callers
Function
type_module_name
(type_name: &ScopedTypeName)
crates/codegen/src/rust.rs:1088
↓ 2 callers
Function
type_ref_module_name
(module: &ModuleDef, type_ref: AlgebraicTypeRef)
crates/codegen/src/rust.rs:1083
↓ 2 callers
Method
types_mut
Get mutable access to the types section, creating it if missing.
crates/lib/src/db/raw_def/v10.rs:834
↓ 2 callers
Function
u128ToUint8Array
(data: bigint)
crates/bindings-typescript/src/lib/util.ts:79
↓ 2 callers
Function
u256ToHexString
(data: bigint)
crates/bindings-typescript/src/lib/util.ts:95
↓ 2 callers
Function
u256ToUint8Array
(data: bigint)
crates/bindings-typescript/src/lib/util.ts:89
↓ 2 callers
Function
u64_row_size
()
crates/snapshot/src/remote.rs:976
↓ 2 callers
Function
ue_root
Reads the UE_ROOT_PATH environment variable
sdks/unreal/tests/sdk_unreal_harness.rs:78
↓ 2 callers
Function
uint8ArrayToHexString
(array: Uint8Array)
crates/bindings-typescript/src/lib/util.ts:40
↓ 2 callers
Function
unchecked_hash_bytes_of
Hashes `slice` by converting to bytes first, as done in the standard library. SAFETY: The type `T` must have no padding.
crates/sats/src/algebraic_value_hash.rs:80
↓ 2 callers
Method
uncompressed
Take the uncompressed message as the one to use.
crates/core/src/client/messages.rs:64
↓ 2 callers
Method
unique_connection_id
(&self)
sdks/rust/tests/test-client/src/module_bindings/unique_connection_id_table.rs:32
↓ 2 callers
Method
unique_identity
(&self)
sdks/rust/tests/test-client/src/module_bindings/unique_identity_table.rs:32
↓ 2 callers
Function
unknown_database_error
Build an error for when the first positional arg doesn't match any configured database target.
crates/cli/src/subcommands/db_arg_resolution.rs:41
↓ 2 callers
Method
unregister
Clear the subscription gauges for this database.
crates/core/src/subscription/module_subscription_actor.rs:100
↓ 2 callers
Method
unregisterSubscription
(querySetId: number)
crates/bindings-typescript/src/sdk/db_connection_impl.ts:515
↓ 2 callers
Function
unsubscribe_multi
Unsubscribe from a set of queries
crates/core/src/subscription/module_subscription_actor.rs:2558
↓ 2 callers
Method
unsubscribe_views
The same as [`Self::unsubscribe_views_and_downgrade_tx`] but doesn't take a tx handle.
crates/core/src/subscription/module_subscription_actor.rs:1843
↓ 2 callers
Function
unsupported
()
crates/sql-parser/src/parser/sql.rs:402
↓ 2 callers
Function
update
Updates `curr_offset` by running `with` on a copy of its current value.
crates/table/src/bflatn_from.rs:93
↓ 2 callers
Function
update
(index_id: IndexId, mut row: T::Row, mut buf: IterBuf)
crates/bindings/src/table.rs:1377
↓ 2 callers
Function
updateSocketToken
(token: string)
tools/llm-oneshot/apps/chat-app/typescript/gemini-3-pro/postgres/chat-app-20260108-120000/client/src/socket.ts:11
↓ 2 callers
Method
update_by_index
Common index-based update operation
crates/bindings-cpp/include/spacetimedb/table_with_constraints.h:320
↓ 2 callers
Function
update_cargo_toml_dependency
Updates a `[dependencies]` entry in a `Cargo.toml` to use a local path.
crates/smoketests/tests/smoketests/templates.rs:120
↓ 2 callers
Method
update_constraint
Add OR replace the [ConstraintSchema]
crates/schema/src/schema.rs:359
↓ 2 callers
Function
update_csproj_server_to_nuget
(dir: &Path)
crates/cli/src/subcommands/init.rs:1138
↓ 2 callers
Method
update_database
( &self, program: Program, old_module_info: Arc<ModuleInfo>, policy: Migration
crates/core/src/host/v8/mod.rs:472
↓ 2 callers
Method
update_indexed_simple_enum_then
( &self, a: SimpleEnum, b: SimpleEnum, callback: impl FnOnce(&super::ReducerE
sdks/rust/tests/test-client/src/module_bindings/update_indexed_simple_enum_reducer.rs:59
↓ 2 callers
Function
update_last_called
(stdb: &TestDB, view_id: ViewId, sender: Identity, last_called: Timestamp)
crates/engine/src/relational_db.rs:2517
↓ 2 callers
Method
update_pk_simple_enum_then
( &self, a: SimpleEnum, data: i32, callback: impl FnOnce(&super::ReducerEvent
sdks/rust/tests/test-client/src/module_bindings/update_pk_simple_enum_reducer.rs:62
↓ 2 callers
Method
update_pk_u_8_then
( &self, n: u8, data: i32, callback: impl FnOnce(&super::ReducerEventContext,
sdks/rust/tests/test-client/src/module_bindings/update_pk_u_8_reducer.rs:60
↓ 2 callers
Method
update_program
Update the module associated with this database. The caller must ensure that: - `program.hash` is the [`Hash`] over `program.bytes`. - `program.byte
crates/engine/src/relational_db.rs:471
↓ 2 callers
Function
update_row_counts
( rows_received: &mut HashMap<ProductValue, i32>, schema: &ProductType, inserts: I,
crates/core/src/subscription/module_subscription_actor.rs:2568
↓ 2 callers
Method
update_sequence
Add OR replace the [SequenceSchema]
crates/schema/src/schema.rs:331
↓ 2 callers
Function
update_server_fingerprint
(config: &mut Config, server: Option<&str>)
crates/cli/src/subcommands/server.rs:242
↓ 2 callers
Method
update_statistics_added_row
(&mut self, blob_bytes: BlobNumBytes)
crates/table/src/table.rs:886
↓ 2 callers
Method
update_statistics_deleted_row
(&mut self, blob_bytes: BlobNumBytes)
crates/table/src/table.rs:893
↓ 2 callers
Method
update_view_timestamp
Updates the `last_called` timestamp in `st_view_sub`. Inserts a row into `st_view_sub` with no subscribers if the row does not exist. This is invoked
crates/datastore/src/locking_tx_datastore/mut_tx.rs:2407
↓ 2 callers
Method
update_view_timestamp_at
Updates the `last_called` timestamp in `st_view_sub` to an explicit value.
crates/datastore/src/locking_tx_datastore/mut_tx.rs:2412
↓ 2 callers
Method
upload_batch
Upload a batch of run outcomes for a single (lang, mode) combination. Normalizes model names and sanitizes volatile fields before upload. If `analysis
tools/xtask-llm-benchmark/src/api/client.rs:47
↓ 2 callers
Function
upsert_packageref
Insert or update <PackageReference Include="..." Version="..."/>
crates/cli/src/subcommands/init.rs:1225
↓ 2 callers
Function
useSpacetimeDB
()
crates/bindings-typescript/src/svelte/useSpacetimeDB.ts:9
↓ 2 callers
Method
use_precompiled_wasm_path
Switches to using an explicit precompiled WASM path. After calling this, subsequent `publish_module*` calls will use this WASM file instead of buildi
crates/smoketests/src/lib.rs:1372
↓ 2 callers
Method
use_schema_of
Makes `self` use the schema of `other`. Here, `self` will typically be a commit table and `other` a tx table, or the reverse.
crates/table/src/table.rs:1418
↓ 2 callers
Function
uses_workspace
(item: &Item)
crates/cli/src/subcommands/init.rs:1959
↓ 2 callers
Function
valid_protocol_or_error
(protocol: &str)
crates/cli/src/subcommands/server.rs:182
↓ 2 callers
Function
validateProvider
(provider: string)
templates/llm-chat-ts/spacetimedb/src/index.ts:63
↓ 2 callers
Method
validate_algorithm
Common validation logic for index algorithms
crates/schema/src/def/validate/v9.rs:1245
↓ 2 callers
Method
validate_constraint_def
Validate a unique constraint definition.
crates/schema/src/def/validate/v9.rs:1286
↓ 2 callers
Method
validate_field_value_seed
Statefully validates the field value `T::Output` from the input provided a `seed` value.
crates/sats/src/de.rs:443
↓ 2 callers
Method
validate_next_element_seed
(&mut self, seed: T)
crates/sats/src/bsatn/de.rs:166
↓ 2 callers
Method
validate_param_column_def
(&mut self, col_id: ColId)
crates/schema/src/def/validate/v9.rs:963
↓ 2 callers
Method
validate_primary_key
( &mut self, validated_constraints: StrMap<ConstraintDef>, primary_key: ColList, )
crates/schema/src/def/validate/v9.rs:1077
← previous
next →
5,001–5,100 of 27,764, ranked by callers