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
execute_publish_configs
( config: &mut Config, publish_configs: Vec<CommandConfig<'a>>, using_config: bool, config_dir
crates/cli/src/subcommands/publish.rs:468
↓ 2 callers
Method
execution_budget_used
(&self)
crates/core/src/host/wasm_common/module_host_actor.rs:255
↓ 2 callers
Method
existing_segment_offsets
Get a list of segment offsets, sorted in ascending order.
crates/commitlog/src/lib.rs:359
↓ 2 callers
Method
extend
(&mut self, iter: T)
crates/data-structures/src/small_map.rs:193
↓ 2 callers
Function
extend_lhs
Extends a left deep join tree with another. Ex. Assume `expr` is given by: ```text x / \ x f / \ d e ``` Assume `with` is given by: ```text x /
crates/expr/src/rls.rs:424
↓ 2 callers
Function
extend_trees_for_product_type
Extend `sub_trees` with checks for `ty`. See [`extend_trees_for_algebraic_type`] for more details.
crates/table/src/static_bsatn_validator.rs:69
↓ 2 callers
Method
extra_deps
Adds extra dependencies to the module's Cargo.toml.
crates/smoketests/src/lib.rs:815
↓ 2 callers
Function
extract_description
Extracts the raw module def by running the registered `__describe_module__` hook.
crates/core/src/host/v8/mod.rs:2042
↓ 2 callers
Method
extract_descriptions
(&mut self)
crates/core/src/host/wasmtime/wasmtime_module.rs:586
↓ 2 callers
Function
extract_impl_query_inner
If `ty` is `impl Query<T>`, returns `Some(T)`. Otherwise `None`.
crates/bindings-macro/src/view.rs:100
↓ 2 callers
Function
extract_index_info
( index: <crate::def::IndexDef as ModuleDefLookup>::Key<'_>, module_def: &ModuleDef, )
crates/schema/src/auto_migrate/formatter.rs:434
↓ 2 callers
Method
extract_refs
Extract all `AlgebraicTypeRef`s that are used in this type into a buffer. The buffer may be in arbitrary order, but will not contain duplicates.
crates/schema/src/type_for_generate.rs:177
↓ 2 callers
Function
extract_repr_c_primitive
Returns the list of types if syntactically we see that the `ty` is `#[repr(C)]` of only primitives. We later assert semantically in generated code th
crates/bindings-macro/src/sats.rs:295
↓ 2 callers
Function
extract_rls_info
( rls: <RawRowLevelSecurityDefV9 as ModuleDefLookup>::Key<'_>, plan: &super::AutoMigratePlan, )
crates/schema/src/auto_migrate/formatter.rs:541
↓ 2 callers
Function
extract_schedule_info
( schedule_table: <ScheduleDef as ModuleDefLookup>::Key<'_>, module_def: &ModuleDef, )
crates/schema/src/auto_migrate/formatter.rs:526
↓ 2 callers
Function
extract_schema
(v: &Value)
tools/xtask-llm-benchmark/src/eval/scorers.rs:112
↓ 2 callers
Method
extract_schema_blocking
(&self)
crates/testing/src/modules.rs:219
↓ 2 callers
Function
extract_schema_with_pools
Extracts the schema from a given module. Spins up a dummy host and returns the `ModuleDef` that it extracts.
crates/core/src/host/host_controller.rs:1372
↓ 2 callers
Function
extract_sequence_info
( sequence: <crate::def::SequenceDef as ModuleDefLookup>::Key<'_>, module_def: &ModuleDef, )
crates/schema/src/auto_migrate/formatter.rs:489
↓ 2 callers
Function
extract_view_info
( view: <ViewDef as crate::def::ModuleDefLookup>::Key<'_>, module_def: &ModuleDef, )
crates/schema/src/auto_migrate/formatter.rs:387
↓ 2 callers
Function
file_name_string
Get final path segment as String.
tools/xtask-llm-benchmark/build.rs:134
↓ 2 callers
Function
fill_log_with
Put the `txes` into `log`. Each TX from `txes` will be placed in its own commit within `log`.
crates/commitlog/src/tests/helpers.rs:46
↓ 2 callers
Function
finalize_binary_serialize_buffer
Finalize a binary websocket payload by optionally compressing the serialized bytes after the caller has written the protocol-specific payload body. C
crates/core/src/client/messages.rs:106
↓ 2 callers
Function
findMembership
(ctx: any, roomId: bigint, identity: any)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/backend/spacetimedb/src/index.ts:71
↓ 2 callers
Function
find_best_match_for_name
Finds the best match for a given word in the given iterator. As a loose rule to avoid the obviously incorrect suggestions, it takes an optional limit
crates/cli/src/edit_distance.rs:137
↓ 2 callers
Function
find_first_csproj
(dir: &Path)
crates/cli/src/subcommands/init.rs:1189
↓ 2 callers
Method
find_index
Finds the 0 based index of the first key encountered that is just smaller than or equal to the given key. # Error - `IndexError::KeyNotFound`: If th
crates/commitlog/src/index/indexfile.rs:94
↓ 2 callers
Function
find_module_and_database
( worker_ctx: &S, name_or_identity: NameOrIdentity, )
crates/client-api/src/routes/database.rs:490
↓ 2 callers
Function
find_module_path
Try to find a SpacetimeDB module directory, checking in order: 1. `{project_dir}/spacetimedb/` subdirectory 2. `{project_dir}` itself Returns the fir
crates/cli/src/util.rs:239
↓ 2 callers
Method
find_st_column_accessor_row
Look up an `st_column_accessor` row by its canonical table and column names
crates/datastore/src/locking_tx_datastore/state_view.rs:148
↓ 2 callers
Method
find_st_event_table_row
(&self, table_id: TableId)
crates/datastore/src/locking_tx_datastore/state_view.rs:99
↓ 2 callers
Method
find_table_schema
Return the [`TableOrViewSchema`] for a relvar in the expression
crates/expr/src/expr.rs:324
↓ 2 callers
Method
find_unqualified_vars
(self)
crates/sql-parser/src/ast/sql.rs:45
↓ 2 callers
Method
finish_anon_tx
Finishes an anonymous transaction, returning `Some(_)` if there was no ongoing one, in which case the caller should return early.
crates/core/src/host/instance_env.rs:753
↓ 2 callers
Function
finish_module_test
These standalone module tests run a `StandaloneEnv` in-process. That means [`CompiledModule::with_module_async`] and [`CompiledModule::with_module`] o
crates/testing/src/modules.rs:349
↓ 2 callers
Method
finish_tx
Perform the transactional logic for the `tx` according to the `res`
crates/engine/src/relational_db.rs:972
↓ 2 callers
Method
fixup_delete_orphaned_st_event_table_rows
Delete any `st_event_table` rows which refer to tables that do not exist in `st_table`. Prior versions of `MutTxId::drop_table` did not delete a drop
crates/datastore/src/locking_tx_datastore/replay.rs:614
↓ 2 callers
Function
flag
(f: F)
crates/core/src/callgrind_flag.rs:58
↓ 2 callers
Method
flush
Flushes the data collected in the current chunk if it's larger than our chunking threshold.
crates/core/src/host/instance_env.rs:173
↓ 2 callers
Method
flush
Flush the buffered data from previous calls to [Self::commit] to the underlying storage. Call [Self::sync] to instruct the underlying storage to flus
crates/commitlog/src/commitlog.rs:148
↓ 2 callers
Method
flush_and_sync
(&mut self)
crates/commitlog/src/stream/writer.rs:417
↓ 2 callers
Method
flush_and_sync
(&self)
crates/durability/src/imp/local.rs:308
↓ 2 callers
Method
fmt_psql
Formats the value using the postgres SATN(PsqlFormatter { f }, /* PsqlType */) formatter `f`.
crates/sats/src/satn.rs:21
↓ 2 callers
Method
for_each_delete
A subscription is just a view of a particular table. Here we compute the rows that are to be removed from that view, and evaluate a closure over each
crates/subscription/src/lib.rs:74
↓ 2 callers
Method
for_each_insert
A subscription is just a view of a particular table. Here we compute the rows that are to be inserted into that view, and evaluate a closure over each
crates/subscription/src/lib.rs:56
↓ 2 callers
Function
format
crates/bindings-cpp/include/spacetimedb/logger.h:31
↓ 2 callers
Function
formatDate
(micros: bigint)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:238
↓ 2 callers
Function
formatDate
(date: string)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/client/src/App.tsx:28
↓ 2 callers
Function
formatTime
(micros: bigint)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:233
↓ 2 callers
Function
formatTime
(timestamp: { microsSinceUnixEpoch: bigint })
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260105-180000/client/src/App.tsx:223
↓ 2 callers
Function
formatTime
(timestamp: { microsSinceUnixEpoch: bigint })
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-171317/client/src/App.tsx:335
↓ 2 callers
Function
formatTime
(timestamp: any)
tools/llm-oneshot/apps/chat-app/typescript/grok-code/spacetime/chat-app-20260107-120000/client/src/components/MessageItem.tsx:79
↓ 2 callers
Function
formatWhen
(date: Date)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/client/src/App.tsx:32
↓ 2 callers
Method
format_chars
(&self)
crates/sats/src/satn.rs:462
↓ 2 callers
Function
format_floating_point
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/QueryBuilder/expr.h:118
↓ 2 callers
Function
format_floating_point
crates/bindings-cpp/include/spacetimedb/query_builder/expr.h:114
↓ 2 callers
Method
format_index
(&mut self, i: &IndexInfo, action: Action)
crates/schema/src/auto_migrate/termcolor_formatter.rs:293
↓ 2 callers
Function
format_output_json_v1
Format a v1 database update using the legacy JSON row representation.
crates/cli/src/subcommands/subscribe.rs:668
↓ 2 callers
Function
format_plan
(f: &mut F, plan: &AutoMigratePlan)
crates/schema/src/auto_migrate/formatter.rs:18
↓ 2 callers
Method
format_rls
(&mut self, r: &RlsInfo, action: Action)
crates/schema/src/auto_migrate/termcolor_formatter.rs:354
↓ 2 callers
Method
format_schedule
(&mut self, s: &ScheduleInfo, action: Action)
crates/schema/src/auto_migrate/termcolor_formatter.rs:346
↓ 2 callers
Method
format_sequence
(&mut self, s: &SequenceInfo, action: Action)
crates/schema/src/auto_migrate/termcolor_formatter.rs:302
↓ 2 callers
Method
format_view
(&mut self, view: &ViewInfo, action: Action)
crates/schema/src/auto_migrate/termcolor_formatter.rs:242
↓ 2 callers
Function
forwarded_header
(headers: &http::HeaderMap, name: &str)
crates/client-api/src/routes/database.rs:349
↓ 2 callers
Function
fragment
Split payload `data` of type `ty` into `fragment_size`d [`Frame`]s, according to the rules laid out in [RFC6455], Section 5.4. [RFC6455]: https://dat
crates/client-api/src/routes/subscribe.rs:1830
↓ 2 callers
Method
frames
(&self)
crates/core/src/host/wasmtime/wasm_instance_env.rs:2049
↓ 2 callers
Method
free
Frees the row starting at `row_offset` and lasting `fixed_row_size` bytes. # Safety `range_move(0..fixed_row_size, row_offset)` must be in bounds of
crates/table/src/page.rs:494
↓ 2 callers
Method
free_object_ignore_blob
Frees an entire var-len linked-list object. If the `var_len_obj` is a large blob, the `VarLenGranule` which stores its blob hash will be freed from t
crates/table/src/page.rs:944
↓ 2 callers
Method
from
(args: ScheduleProcArgs)
modules/sdk-test-procedure-cpp/client/src/module_bindings/schedule_proc_reducer.rs:12
↓ 2 callers
Function
from_slice
(s: &[T])
crates/data-structures/src/slim_slice.rs:1039
↓ 2 callers
Function
from_str_mut
(s: &mut str)
crates/data-structures/src/slim_slice.rs:1548
↓ 2 callers
Function
from_wire_headers
* @brief Convert wire format HttpHeaders to user-facing header vector */
crates/bindings-cpp/include/spacetimedb/http_convert.h:194
↓ 2 callers
Method
fsync
(&mut self)
crates/commitlog/src/segment.rs:236
↓ 2 callers
Method
fsync
(&self)
crates/commitlog/src/stream/common.rs:41
↓ 2 callers
Function
function_args_type_name
(function_name: &str)
crates/codegen/src/rust.rs:1104
↓ 2 callers
Function
gather_docs_files
()
tools/xtask-llm-benchmark/src/context/hashing.rs:88
↓ 2 callers
Method
gen_constraint_def
(&self, kind: Constraints, columns: impl Into<ColList>)
crates/lib/src/db/raw_def/v8.rs:391
↓ 2 callers
Function
gen_imports
(imports: &mut Imports, roots: &[(Identifier, AlgebraicTypeUse)])
crates/codegen/src/rust.rs:2077
↓ 2 callers
Function
gen_ops
(pv: ProductValue)
crates/commitlog/src/payload/txdata.rs:625
↓ 2 callers
Function
gen_ptr
(row_size: Size)
crates/datastore/src/locking_tx_datastore/delete_table.rs:237
↓ 2 callers
Function
gen_size
()
crates/datastore/src/locking_tx_datastore/delete_table.rs:233
↓ 2 callers
Function
gen_table_id
()
crates/commitlog/src/payload/txdata.rs:621
↓ 2 callers
Function
generate_algebraic_type
Generates `AlgebraicType`s, not including recursive (i.e. `Ref` types), but including compound types (i.e. `Product` and `Sum` types). Any type gener
crates/sats/src/proptest.rs:101
↓ 2 callers
Function
generate_algebraic_type_from_leaves
Generate an algebraic type wrapping leaf types.
crates/sats/src/proptest.rs:60
↓ 2 callers
Function
generate_build_and_publish
( config: &Config, project_dir: &Path, config_dir: Option<&Path>, spacetimedb_dir: &Path,
crates/cli/src/subcommands/dev.rs:996
↓ 2 callers
Function
generate_index_name
All indexes have this name format. Generated name should not go through case conversion.
crates/schema/src/def/validate/v9.rs:1430
↓ 2 callers
Function
generate_schedule_name
All schedules have this name format. Generated name should not go through case conversion.
crates/schema/src/def/validate/v9.rs:1456
↓ 2 callers
Function
generate_sum_value
Generates a `SumValue` typed at `ty`.
crates/sats/src/proptest.rs:167
↓ 2 callers
Function
generate_table_cpp
Helper function to generate table .cpp implementation files
crates/codegen/src/unrealcpp.rs:1150
↓ 2 callers
Method
generate_table_file_from_schema
( &self, module: &ModuleDef, table: &TableDef, _schema: TableSchema, )
crates/codegen/src/cpp.rs:481
↓ 2 callers
Function
generate_template_entry
(code: &mut String, template_path: &Path, source: &str, manifest_dir: &Path)
crates/cli/build.rs:257
↓ 2 callers
Function
generate_unique_constraint_name
All unique constraints have this name format. Generated name should not go through case conversion.
crates/schema/src/def/validate/v9.rs:1463
↓ 2 callers
Method
get
Returns the tx in the slot.
crates/core/src/host/instance_env.rs:1310
↓ 2 callers
Method
get
crates/bindings-cpp/include/spacetimedb/router.h:30
↓ 2 callers
Function
getClientMessageVariantTag
(name: string)
crates/bindings-typescript/src/sdk/db_connection_impl.ts:133
↓ 2 callers
Function
getDmName
(room: Room)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:253
↓ 2 callers
Function
getDmPartnerName
(room: Room)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260105-180000/client/src/App.tsx:493
↓ 2 callers
Method
getEditHistory
(messageId: number)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-180000/client/src/api.ts:205
↓ 2 callers
Function
getInitials
(identity: Identity)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:223
↓ 2 callers
Method
getKey
(row: Row)
crates/bindings-typescript/src/sdk/table_cache.ts:126
← previous
next →
4,101–4,200 of 27,764, ranked by callers