MCPcopy Create free account

hub / github.com/clockworklabs/SpacetimeDB / functions

Functions27,764 in github.com/clockworklabs/SpacetimeDB

↓ 2 callersMethodbuild_error_unique
( &self, index: &TableIndex, index_id: IndexId, row: RowRef<'_>, )
crates/table/src/table.rs:2330
↓ 2 callersFunctionbuild_fail_outcome
( task: &TaskPaths, lang_name: &str, route: &ModelRoute, hash: &str, err: anyhow::Error,
tools/xtask-llm-benchmark/src/bench/runner.rs:955
↓ 2 callersMethodbuild_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 callersFunctionbuild_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 callersFunctionbuild_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 callersMethodbuild_impl
(self)
sdks/rust/src/db_connection.rs:965
↓ 2 callersFunctionbuild_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 callersFunctionbuild_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 callersFunctionbuild_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 callersMethodbuilder
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 callersFunctionbumpPresence
(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 callersMethodbytesToBigInt
(bytes: Uint8Array)
crates/bindings-typescript/src/lib/uuid.ts:263
↓ 2 callersMethodbytes_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 callersFunctioncallConvexMutation
(url: string, pathName: string, args: any)
templates/keynote-2/src/init/init_convex.ts:3
↓ 2 callersFunctioncall_call_reducer
Calls the `__call_reducer__` function `fun`.
crates/core/src/host/v8/syscall/v2.rs:441
↓ 2 callersFunctioncall_call_view
Calls the `__call_view__` function `fun`.
crates/core/src/host/v8/syscall/v2.rs:524
↓ 2 callersFunctioncall_call_view_anon
Calls the `__call_view_anon__` function `fun`.
crates/core/src/host/v8/syscall/v2.rs:574
↓ 2 callersFunctioncall_describe_module
Calls the registered `__describe_module__` function hook.
crates/core/src/host/v8/syscall/common.rs:127
↓ 2 callersMethodcall_function
Calls a function (reducer, view) and performs energy monitoring.
crates/core/src/host/wasm_common/module_host_actor.rs:1111
↓ 2 callersMethodcall_http_handler
( &self, params: CallHttpHandlerParams, )
crates/core/src/host/v8/mod.rs:700
↓ 2 callersFunctioncall_identity_connected
( caller_auth: ConnectionAuthCtx, caller_connection_id: ConnectionId, module: &ModuleInfo, cal
crates/core/src/host/module_host.rs:653
↓ 2 callersFunctioncall_no_ret
(f: impl FnOnce() -> u16)
crates/bindings-sys/src/lib.rs:1073
↓ 2 callersFunctioncall_params_for_queued_item
( module: &ModuleInfo, db: &RelationalDB, tx: &MutTxId, item: QueueItem, function_to_call_
crates/core/src/host/scheduler.rs:743
↓ 2 callersMethodcall_reducer
(&self, params: CallReducerParams)
crates/core/src/host/v8/mod.rs:486
↓ 2 callersMethodcall_reducer_binary_result
( &self, reducer: &str, args: &sats::ProductValue, )
crates/testing/src/modules.rs:101
↓ 2 callersMethodcall_reducer_json
(&self, reducer: &str, args: &sats::ProductValue)
crates/testing/src/modules.rs:91
↓ 2 callersMethodcall_reducer_result
(&self, reducer: &str, args: FunctionArgs)
crates/testing/src/modules.rs:67
↓ 2 callersMethodcall_scheduled_procedure
( &self, params: ScheduledFunctionParams, )
crates/core/src/host/v8/mod.rs:723
↓ 2 callersMethodcall_scheduled_reducer
( &self, params: ScheduledFunctionParams, )
crates/core/src/host/v8/mod.rs:490
↓ 2 callersMethodcall_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 callersMethodcallbackCounts
()
crates/bindings-typescript/tests/connection_manager_reconnect.test.ts:57
↓ 2 callersFunctioncancelEditing
()
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/client/src/App.tsx:443
↓ 2 callersMethodcancel_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 callersFunctioncanonical_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 callersMethodchange_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 callersFunctionchatUpdatedMicros
(chat: Chat)
templates/llm-chat-ts/src/App.tsx:45
↓ 2 callersFunctioncheckExportContext
Verify that the ModuleContext that `exp` comes from is the same as `schema`
crates/bindings-typescript/src/server/schema.ts:586
↓ 2 callersMethodcheck_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 callersFunctioncheck_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 callersFunctioncheck_function_names_are_unique
( reducers: Vec<(Identifier, ReducerDef)>, procedures: Vec<(Identifier, ProcedureDef)>, views: Vec
crates/schema/src/def/validate/v9.rs:1541
↓ 2 callersMethodcheck_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 callersMethodcheck_nullptr
(self)
crates/core/src/host/wasmtime/mod.rs:379
↓ 2 callersFunctioncheck_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 callersMethodcheck_state
(&self)
crates/datastore/src/locking_tx_datastore/delete_table.rs:216
↓ 2 callersFunctioncheck_tag
Check that `bytes[tag_offset] < num_variants`. SAFETY: `tag_offset < bytes.len()`.
crates/table/src/static_bsatn_validator.rs:305
↓ 2 callersFunctioncheck_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 callersFunctioncheck_termination
Checks the termination flag and terminates execution immediately if it was set.
crates/core/src/host/v8/error.rs:204
↓ 2 callersFunctioncheck_u64_in_str
(page: &Page, row_idx: PageOffset, expected_val: u64)
crates/table/src/page.rs:2436
↓ 2 callersMethodcheck_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 callersMethodclap_arg_name_for
Get the clap argument name for a config key.
crates/cli/src/spacetime_config.rs:557
↓ 2 callersFunctionclean
(stat)
crates/bench/hyper_cmp.py:13
↓ 2 callersFunctionclearRows
(rows: Iterable<T>, remove: (row: T) => boolean)
templates/hangman-react-ts/spacetimedb/src/index.ts:155
↓ 2 callersMethodclear_all_clients
(&self)
crates/core/src/host/v8/mod.rs:505
↓ 2 callersFunctionclear_database
()
crates/cli/src/common_args.rs:42
↓ 2 callersFunctionclear_restored_package_dirs
(pkg_id: &str)
tools/regen/src/csharp.rs:111
↓ 2 callersMethodclear_table
Clears the table for `table_id`, removing all rows.
crates/datastore/src/locking_tx_datastore/mut_tx.rs:3278
↓ 2 callersMethodcli_toml
(&self)
crates/paths/src/cli.rs:19
↓ 2 callersFunctionclient_connection_with_config
( client_id: ClientActorId, db: &Arc<RelationalDB>, config: ClientConfig, )
crates/core/src/subscription/module_subscription_actor.rs:2170
↓ 2 callersMethodclone
(&self)
crates/query-builder/src/join.rs:30
↓ 2 callersFunctionclose
()
templates/keynote-2/src/connectors/bun.ts:53
↓ 2 callersFunctionclose_client
(client: &mut C, err: E)
crates/pg/src/pg_server.rs:200
↓ 2 callersMethodcmp
(&self, other: &Self)
crates/data-structures/src/slim_slice.rs:533
↓ 2 callersMethodcmp
(&self, other: &Self)
crates/table/src/table_index/bytes_key.rs:74
↓ 2 callersFunctioncmp_start_end
(start: &T, end: &T, needle: &T)
crates/bench/benches/delete_table.rs:240
↓ 2 callersFunctioncockroach_rpc
( url = process.env.CRDB_RPC_URL || 'http://127.0.0.1:4102', )
templates/keynote-2/src/connectors/rpc/cockroach_rpc.ts:4
↓ 2 callersFunctioncode_error
Throws `{ __code_error__: code }`.
crates/core/src/host/v8/syscall/v1.rs:338
↓ 2 callersFunctioncoerceRequestBody
(body?: BodyInit | null)
crates/bindings-typescript/src/server/http_handlers.ts:61
↓ 2 callersFunctioncollect_offsets_from_num_rows
(num_rows: usize, size: usize)
crates/core/src/subscription/websocket_building.rs:172
↓ 2 callersMethodcollect_product_dependencies
(&self, module: &ModuleDef, product: &ProductTypeDef)
crates/codegen/src/cpp.rs:153
↓ 2 callersMethodcollect_views
(&self, views: &mut HashSet<ViewId>)
crates/core/src/subscription/module_subscription_manager.rs:71
↓ 2 callersFunctioncolumn_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 callersMethodcolumn_name
(&self)
crates/query-builder/src/table.rs:110
↓ 2 callersMethodcolumn_pos
Finds the index of the column with a matching `FieldName`.
crates/schema/src/relation.rs:135
↓ 2 callersMethodcolumns
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 callersFunctioncombine_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 callersMethodcommit_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 callersMethodcommit_and_then
( mut self, before_release: impl FnOnce(&Arc<TxData>), )
crates/datastore/src/locking_tx_datastore/mut_tx.rs:2114
↓ 2 callersMethodcommit_downgrade_and_then
( mut self, workload: Workload, before_downgrade: impl FnOnce(&Arc<TxData>), )
crates/datastore/src/locking_tx_datastore/mut_tx.rs:2177
↓ 2 callersFunctioncommits_from
(repo: R, max_log_format_version: u8, offset: u64)
crates/commitlog/src/commitlog.rs:535
↓ 2 callersMethodcompare
(other: SemanticVersion)
crates/bindings-typescript/src/sdk/version.ts:62
↓ 2 callersFunctioncompareText
(left: string, right: string)
templates/hangman-react-ts/spacetimedb/src/index.ts:151
↓ 2 callersFunctioncompile_field_project
(var: &mut impl VarLabel, expr: FieldProject)
crates/physical-plan/src/compile.rs:57
↓ 2 callersFunctioncompile_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 callersFunctioncompile_project_name
(var: &mut impl VarLabel, proj: ProjectName)
crates/physical-plan/src/compile.rs:50
↓ 2 callersFunctioncompile_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 callersMethodcompress_segment
Compress a segment in storage, marking it as immutable.
crates/commitlog/src/repo/mod.rs:126
↓ 2 callersMethodcompress_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 callersMethodcompress_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 callersMethodcompress_type
(&self)
crates/fs-utils/src/compression.rs:97
↓ 2 callersMethodcompress_with_tag
Compress the data from a `write_with_tag` call, and change the tag.
crates/core/src/client/messages.rs:84
↓ 2 callersFunctioncompress_with_zstd
( mut src: R, dst: W, max_frame_size: Option<u32>, )
crates/fs-utils/src/compression.rs:187
↓ 2 callersFunctioncomputeActivityLevel
(roomId: number)
tools/llm-sequential-upgrade/perf-benchmark/optimized-reference/pg-index-optimized.ts:39
↓ 2 callersMethodcompute_index_types
Re-computes the index key types.
crates/table/src/table.rs:554
↓ 2 callersFunctionconcat_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 callersFunctionconcat_column_names
Concatenate a list of column names.
crates/schema/src/def/validate/v9.rs:1423
↓ 2 callersFunctionconcatenateMessagesV3
( writer: BinaryWriter, messages: readonly Uint8Array<ArrayBuffer>[], messageCount: number = messages.le
crates/bindings-typescript/src/sdk/websocket_v3_frames.ts:29
↓ 2 callersFunctionconf_to_filter
(conf: LogConfig)
crates/core/src/startup.rs:117
↓ 2 callersMethodconfig_toml
(&self)
crates/paths/src/server.rs:12
↓ 2 callersMethodconfigure
Configures `builder` to pin its worker threads to specific cores.
crates/core/src/startup.rs:352
↓ 2 callersFunctionconfirm_and_clear
( name_or_identity: &str, skip_prompt: bool, mut builder: reqwest::RequestBuilder, )
crates/cli/src/subcommands/publish.rs:322
← previousnext →3,801–3,900 of 27,764, ranked by callers