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
Method
build_error_unique
( &self, index: &TableIndex, index_id: IndexId, row: RowRef<'_>, )
crates/table/src/table.rs:2330
↓ 2 callers
Function
build_fail_outcome
( task: &TaskPaths, lang_name: &str, route: &ModelRoute, hash: &str, err: anyhow::Error,
tools/xtask-llm-benchmark/src/bench/runner.rs:955
↓ 2 callers
Method
build_from_rows
Extends [`TableIndex`] with `rows`. Returns the first unique constraint violation caused when adding this index, if any. # Safety Caller promises t
crates/table/src/table_index/mod.rs:2435
↓ 2 callers
Function
build_func_params_and_args
Builds C# function parameter and argument lists from an iterator of parameter names and types.
crates/codegen/src/csharp.rs:1565
↓ 2 callers
Function
build_goldens_only_for_lang
( host: Option<String>, bench_root: &Path, lang: Lang, selectors: Option<&[String]>, )
tools/xtask-llm-benchmark/src/bench/runner.rs:875
↓ 2 callers
Method
build_impl
(self)
sdks/rust/src/db_connection.rs:965
↓ 2 callers
Function
build_list_with_executor
Returns a list built by passing a function `add` to `driver`, which will call the former for every row it processes.
crates/core/src/subscription/mod.rs:75
↓ 2 callers
Function
build_table
Generates a [`tabled::Table`] from a schema and rows, using the style of a psql table.
crates/cli/src/subcommands/sql.rs:252
↓ 2 callers
Function
build_typescript_sdk
Builds the TypeScript SDK (`crates/bindings-typescript`). Should be called once before testing any TypeScript templates.
crates/smoketests/tests/smoketests/templates.rs:586
↓ 2 callers
Method
builder
Builder-pattern constructor for a connection to a remote module. See [`__sdk::DbConnectionBuilder`] for required and optional configuration for the n
templates/chat-console-rs/src/module_bindings/mod.rs:273
↓ 2 callers
Function
bumpPresence
(userId: string, delta: number)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/server/src/realtime.ts:23
↓ 2 callers
Method
bytesToBigInt
(bytes: Uint8Array)
crates/bindings-typescript/src/lib/uuid.ts:263
↓ 2 callers
Method
bytes_occupied_overestimate
Returns the number of bytes occupied by the pages and the blob store. Note that result can be more than the actual physical size occupied by the table
crates/table/src/table.rs:1621
↓ 2 callers
Function
callConvexMutation
(url: string, pathName: string, args: any)
templates/keynote-2/src/init/init_convex.ts:3
↓ 2 callers
Function
call_call_reducer
Calls the `__call_reducer__` function `fun`.
crates/core/src/host/v8/syscall/v2.rs:441
↓ 2 callers
Function
call_call_view
Calls the `__call_view__` function `fun`.
crates/core/src/host/v8/syscall/v2.rs:524
↓ 2 callers
Function
call_call_view_anon
Calls the `__call_view_anon__` function `fun`.
crates/core/src/host/v8/syscall/v2.rs:574
↓ 2 callers
Function
call_describe_module
Calls the registered `__describe_module__` function hook.
crates/core/src/host/v8/syscall/common.rs:127
↓ 2 callers
Method
call_function
Calls a function (reducer, view) and performs energy monitoring.
crates/core/src/host/wasm_common/module_host_actor.rs:1111
↓ 2 callers
Method
call_http_handler
( &self, params: CallHttpHandlerParams, )
crates/core/src/host/v8/mod.rs:700
↓ 2 callers
Function
call_identity_connected
( caller_auth: ConnectionAuthCtx, caller_connection_id: ConnectionId, module: &ModuleInfo, cal
crates/core/src/host/module_host.rs:653
↓ 2 callers
Function
call_no_ret
(f: impl FnOnce() -> u16)
crates/bindings-sys/src/lib.rs:1073
↓ 2 callers
Function
call_params_for_queued_item
( module: &ModuleInfo, db: &RelationalDB, tx: &MutTxId, item: QueueItem, function_to_call_
crates/core/src/host/scheduler.rs:743
↓ 2 callers
Method
call_reducer
(&self, params: CallReducerParams)
crates/core/src/host/v8/mod.rs:486
↓ 2 callers
Method
call_reducer_binary_result
( &self, reducer: &str, args: &sats::ProductValue, )
crates/testing/src/modules.rs:101
↓ 2 callers
Method
call_reducer_json
(&self, reducer: &str, args: &sats::ProductValue)
crates/testing/src/modules.rs:91
↓ 2 callers
Method
call_reducer_result
(&self, reducer: &str, args: FunctionArgs)
crates/testing/src/modules.rs:67
↓ 2 callers
Method
call_scheduled_procedure
( &self, params: ScheduledFunctionParams, )
crates/core/src/host/v8/mod.rs:723
↓ 2 callers
Method
call_scheduled_reducer
( &self, params: ScheduledFunctionParams, )
crates/core/src/host/v8/mod.rs:490
↓ 2 callers
Method
call_view_with_tx
Executes a view and materializes its result, deleting any previously materialized rows. Similar to [`Self::call_reducer_with_tx`], but for views. How
crates/core/src/host/wasm_common/module_host_actor.rs:1280
↓ 2 callers
Method
callbackCounts
()
crates/bindings-typescript/tests/connection_manager_reconnect.test.ts:57
↓ 2 callers
Function
cancelEditing
()
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/client/src/App.tsx:443
↓ 2 callers
Method
cancel_timer
Remove a timer entry if it is still present. Cancellation is best-effort because the timer may already have been removed by a wakeup path before the
crates/runtime/src/sim/time/mod.rs:103
↓ 2 callers
Function
canonical_model_name
Normalize model names so that OpenRouter-style IDs and case variants resolve to the canonical display name from model_routes.
tools/xtask-llm-benchmark/src/bench/normalize.rs:76
↓ 2 callers
Method
change_columns_to
Change the columns of `self` to those in `column_schemas` and returns the old column schemas. Returns an error if the new list of column is incompati
crates/table/src/table.rs:366
↓ 2 callers
Function
chatUpdatedMicros
(chat: Chat)
templates/llm-chat-ts/src/App.tsx:45
↓ 2 callers
Function
checkExportContext
Verify that the ModuleContext that `exp` comes from is the same as `schema`
crates/bindings-typescript/src/server/schema.ts:586
↓ 2 callers
Method
check_and_insert
Inserts `ptr` with the value `row` to this index. This index will extract the necessary values from `row` based on `self.indexed_columns`. Returns `E
crates/table/src/table_index/mod.rs:2351
↓ 2 callers
Function
check_determinism
Run the same future factory twice and assert that both runs consume the same deterministic RNG/scheduler trace. Each pass runs on a fresh OS thread s
crates/runtime/src/sim_std.rs:33
↓ 2 callers
Function
check_function_names_are_unique
( reducers: Vec<(Identifier, ReducerDef)>, procedures: Vec<(Identifier, ProcedureDef)>, views: Vec
crates/schema/src/def/validate/v9.rs:1541
↓ 2 callers
Method
check_module_validity
Construct an in-memory instance of `database` running `program`, initialize it, then immediately destroy it. This is used during an initial, fresh pu
crates/core/src/host/host_controller.rs:358
↓ 2 callers
Method
check_nullptr
(self)
crates/core/src/host/wasmtime/mod.rs:379
↓ 2 callers
Function
check_scheduled_functions_exist
Check that every [`ScheduleDef`]'s `function_name` refers to a real reducer or procedure and that the function's arguments are appropriate for the tab
crates/schema/src/def/validate/v9.rs:1490
↓ 2 callers
Method
check_state
(&self)
crates/datastore/src/locking_tx_datastore/delete_table.rs:216
↓ 2 callers
Function
check_tag
Check that `bytes[tag_offset] < num_variants`. SAFETY: `tag_offset < bytes.len()`.
crates/table/src/static_bsatn_validator.rs:305
↓ 2 callers
Function
check_template_clippy
Run clippy on a template's spacetimedb module directory. Both templates use workspace dependencies, so they can be checked in place.
crates/smoketests/tests/smoketests/default_module_clippy.rs:17
↓ 2 callers
Function
check_termination
Checks the termination flag and terminates execution immediately if it was set.
crates/core/src/host/v8/error.rs:204
↓ 2 callers
Function
check_u64_in_str
(page: &Page, row_idx: PageOffset, expected_val: u64)
crates/table/src/page.rs:2436
↓ 2 callers
Method
check_unique_constraints
Check if the `row` conflicts with any unique index on `self`, and if there is a conflict, return `Err`. `is_deleted` is a predicate which, for a give
crates/table/src/table.rs:578
↓ 2 callers
Method
clap_arg_name_for
Get the clap argument name for a config key.
crates/cli/src/spacetime_config.rs:557
↓ 2 callers
Function
clean
(stat)
crates/bench/hyper_cmp.py:13
↓ 2 callers
Function
clearRows
(rows: Iterable<T>, remove: (row: T) => boolean)
templates/hangman-react-ts/spacetimedb/src/index.ts:155
↓ 2 callers
Method
clear_all_clients
(&self)
crates/core/src/host/v8/mod.rs:505
↓ 2 callers
Function
clear_database
()
crates/cli/src/common_args.rs:42
↓ 2 callers
Function
clear_restored_package_dirs
(pkg_id: &str)
tools/regen/src/csharp.rs:111
↓ 2 callers
Method
clear_table
Clears the table for `table_id`, removing all rows.
crates/datastore/src/locking_tx_datastore/mut_tx.rs:3278
↓ 2 callers
Method
cli_toml
(&self)
crates/paths/src/cli.rs:19
↓ 2 callers
Function
client_connection_with_config
( client_id: ClientActorId, db: &Arc<RelationalDB>, config: ClientConfig, )
crates/core/src/subscription/module_subscription_actor.rs:2170
↓ 2 callers
Method
clone
(&self)
crates/query-builder/src/join.rs:30
↓ 2 callers
Function
close
()
templates/keynote-2/src/connectors/bun.ts:53
↓ 2 callers
Function
close_client
(client: &mut C, err: E)
crates/pg/src/pg_server.rs:200
↓ 2 callers
Method
cmp
(&self, other: &Self)
crates/data-structures/src/slim_slice.rs:533
↓ 2 callers
Method
cmp
(&self, other: &Self)
crates/table/src/table_index/bytes_key.rs:74
↓ 2 callers
Function
cmp_start_end
(start: &T, end: &T, needle: &T)
crates/bench/benches/delete_table.rs:240
↓ 2 callers
Function
cockroach_rpc
( url = process.env.CRDB_RPC_URL || 'http://127.0.0.1:4102', )
templates/keynote-2/src/connectors/rpc/cockroach_rpc.ts:4
↓ 2 callers
Function
code_error
Throws `{ __code_error__: code }`.
crates/core/src/host/v8/syscall/v1.rs:338
↓ 2 callers
Function
coerceRequestBody
(body?: BodyInit | null)
crates/bindings-typescript/src/server/http_handlers.ts:61
↓ 2 callers
Function
collect_offsets_from_num_rows
(num_rows: usize, size: usize)
crates/core/src/subscription/websocket_building.rs:172
↓ 2 callers
Method
collect_product_dependencies
(&self, module: &ModuleDef, product: &ProductTypeDef)
crates/codegen/src/cpp.rs:153
↓ 2 callers
Method
collect_views
(&self, views: &mut HashSet<ViewId>)
crates/core/src/subscription/module_subscription_manager.rs:71
↓ 2 callers
Function
column_name
Get the name of a column in the typespace. Only used for generating names for indexes, sequences, and unique constraints. Generates `col_{column}` i
crates/schema/src/def/validate/v9.rs:1414
↓ 2 callers
Method
column_name
(&self)
crates/query-builder/src/table.rs:110
↓ 2 callers
Method
column_pos
Finds the index of the column with a matching `FieldName`.
crates/schema/src/relation.rs:135
↓ 2 callers
Method
columns
Get the columns of the table. Only immutable access to the columns is provided. The ordering of the columns is significant. Columns are frequently ide
crates/schema/src/schema.rs:310
↓ 2 callers
Function
combine_constraints
Combine constraints. The result is a map from `ColList` to `Constraints`. In particular, it includes all indexes, and tells you which of them are uniq
crates/schema/src/relation.rs:232
↓ 2 callers
Method
commit_and_broadcast_event
Commit a transaction and broadcast its ModuleEvent to all interested subscribers. The returned [`ExecutionMetrics`] are reported in this method via `
crates/core/src/subscription/module_subscription_actor.rs:1737
↓ 2 callers
Method
commit_and_then
( mut self, before_release: impl FnOnce(&Arc<TxData>), )
crates/datastore/src/locking_tx_datastore/mut_tx.rs:2114
↓ 2 callers
Method
commit_downgrade_and_then
( mut self, workload: Workload, before_downgrade: impl FnOnce(&Arc<TxData>), )
crates/datastore/src/locking_tx_datastore/mut_tx.rs:2177
↓ 2 callers
Function
commits_from
(repo: R, max_log_format_version: u8, offset: u64)
crates/commitlog/src/commitlog.rs:535
↓ 2 callers
Method
compare
(other: SemanticVersion)
crates/bindings-typescript/src/sdk/version.ts:62
↓ 2 callers
Function
compareText
(left: string, right: string)
templates/hangman-react-ts/spacetimedb/src/index.ts:151
↓ 2 callers
Function
compile_field_project
(var: &mut impl VarLabel, expr: FieldProject)
crates/physical-plan/src/compile.rs:57
↓ 2 callers
Function
compile_module
Note: this function is memoized to ensure we compile each module only once. Without this lock, if multiple `Test`s ran concurrently in the same proces
crates/testing/src/sdk.rs:172
↓ 2 callers
Function
compile_project_name
(var: &mut impl VarLabel, proj: ProjectName)
crates/physical-plan/src/compile.rs:50
↓ 2 callers
Function
compile_select_list
Converts a logical selection into a physical plan. Note, this utility is applicable to a generic selections. In particular, it supports explicit colum
crates/physical-plan/src/compile.rs:176
↓ 2 callers
Method
compress_segment
Compress a segment in storage, marking it as immutable.
crates/commitlog/src/repo/mod.rs:126
↓ 2 callers
Method
compress_segments
Compress the segments at the offsets provided, marking them as immutable. `offsets` must contain the exact segment offsets, no rounding to the neares
crates/commitlog/src/lib.rs:380
↓ 2 callers
Method
compress_snapshots
Traverse the snapshots in `self.snapshot_repository` up to and excluding `latest_snapshot` and compress all snapshots that are not yet compressed. Pr
crates/engine/src/snapshot.rs:339
↓ 2 callers
Method
compress_type
(&self)
crates/fs-utils/src/compression.rs:97
↓ 2 callers
Method
compress_with_tag
Compress the data from a `write_with_tag` call, and change the tag.
crates/core/src/client/messages.rs:84
↓ 2 callers
Function
compress_with_zstd
( mut src: R, dst: W, max_frame_size: Option<u32>, )
crates/fs-utils/src/compression.rs:187
↓ 2 callers
Function
computeActivityLevel
(roomId: number)
tools/llm-sequential-upgrade/perf-benchmark/optimized-reference/pg-index-optimized.ts:39
↓ 2 callers
Method
compute_index_types
Re-computes the index key types.
crates/table/src/table.rs:554
↓ 2 callers
Function
concat_byte_chunks_buf
Returns the concatenation of `chunks` that must be of `total_len` as a `Vec<u8>`. # Safety - `total_len == chunks.map(|c| c.len()).sum() <= isize::M
crates/sats/src/algebraic_value/ser.rs:171
↓ 2 callers
Function
concat_column_names
Concatenate a list of column names.
crates/schema/src/def/validate/v9.rs:1423
↓ 2 callers
Function
concatenateMessagesV3
( writer: BinaryWriter, messages: readonly Uint8Array<ArrayBuffer>[], messageCount: number = messages.le
crates/bindings-typescript/src/sdk/websocket_v3_frames.ts:29
↓ 2 callers
Function
conf_to_filter
(conf: LogConfig)
crates/core/src/startup.rs:117
↓ 2 callers
Method
config_toml
(&self)
crates/paths/src/server.rs:12
↓ 2 callers
Method
configure
Configures `builder` to pin its worker threads to specific cores.
crates/core/src/startup.rs:352
↓ 2 callers
Function
confirm_and_clear
( name_or_identity: &str, skip_prompt: bool, mut builder: reqwest::RequestBuilder, )
crates/cli/src/subcommands/publish.rs:322
← previous
next →
3,801–3,900 of 27,764, ranked by callers