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
↓ 3 callers
Function
fetch_latest_version_from_mirror
Fetch the latest version tag from the mirror. This is the single source of truth for mirror version resolution.
crates/update/src/cli/install.rs:67
↓ 3 callers
Method
fetch_page
(&self, hash: blake3::Hash)
crates/snapshot/src/remote.rs:454
↓ 3 callers
Method
field_names
(&self)
crates/sats/src/de/impls.rs:71
↓ 3 callers
Method
fill_buf
(&mut self)
crates/commitlog/src/repo/fs.rs:183
↓ 3 callers
Function
fill_log
(mut log: commitlog::Generic<ShortMem, [u8; 32]>, range: Range<TxOffset>)
crates/commitlog/src/tests/partial.rs:33
↓ 3 callers
Function
fill_with_var_len
(page: &mut Page, var_len: &[u8], visitor: &impl VarLenMembers)
crates/table/benches/page.rs:219
↓ 3 callers
Function
find_and_load_with_env
Find and load config with environment layering from the current directory. Loading order (each overlays the previous via top-level key replacement):
crates/cli/src/spacetime_config.rs:1017
↓ 3 callers
Function
find_column
(cols: &'a [Column<'b>], name: &Ident)
crates/bindings-macro/src/table.rs:751
↓ 3 callers
Function
find_leader_and_database
( worker_ctx: &S, name_or_identity: NameOrIdentity, )
crates/client-api/src/routes/database.rs:473
↓ 3 callers
Function
find_remove
Removes and returns the first element satisfying `predicate` in `vec`.
crates/schema/src/schema.rs:690
↓ 3 callers
Method
find_st_table_row
Find the `st_table` row for `table_id`, first inspecting [`Self::replay_table_updated`], then falling back to [`CommittedState::iter_by_col_eq`].
crates/datastore/src/locking_tx_datastore/replay.rs:1085
↓ 3 callers
Method
first_text
(self)
tools/xtask-llm-benchmark/src/llm/clients/oa_compat.rs:42
↓ 3 callers
Method
flush_binary_payload
Encode and forward the accumulated binary payload, then reset its counters.
crates/client-api/src/routes/subscribe.rs:1616
↓ 3 callers
Method
fn_name
Returns the name of the function that was called.
crates/core/src/host/v8/error.rs:503
↓ 3 callers
Function
fold_transactions_internal
( mut commits: CommitsWithVersion<R>, de: D, range: impl RangeBounds<u64>, )
crates/commitlog/src/commitlog.rs:618
↓ 3 callers
Method
foodOnInsert
(food: Food)
demo/Blackholio/client-ts/src/game/GameManager.ts:168
↓ 3 callers
Method
for_each_ref
Recurse through this `AlgebraicTypeUse`, calling `f` on every type ref encountered.
crates/schema/src/type_for_generate.rs:333
↓ 3 callers
Function
formatRoomName
(name: string)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/client/src/App.tsx:28
↓ 3 callers
Function
formatTime
(date: string)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-160000/client/src/App.tsx:749
↓ 3 callers
Function
formatTime
(date: string)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/client/src/App.tsx:21
↓ 3 callers
Function
format_expr
(expr: &BoolExpr<T>)
crates/query-builder/src/expr.rs:83
↓ 3 callers
Function
format_output_json_from_tables
Serialize the normalized table update map as one JSON object per output line.
crates/cli/src/subcommands/subscribe.rs:692
↓ 3 callers
Function
from_slice_mut
(s: &mut [T])
crates/data-structures/src/slim_slice.rs:1208
↓ 3 callers
Function
from_tx_offset
Create a TransactionOffset from a known TxOffset.
crates/core/src/subscription/module_subscription_manager.rs:619
↓ 3 callers
Function
game_loop_enemy_ia
(ctx: &ReducerContext, players: u64)
modules/benchmarks/src/ia_loop.rs:393
↓ 3 callers
Function
gap_enough_size_for_row
(first_var: PageOffset, last_fixed: PageOffset, fixed_row_size: Size)
crates/table/src/page.rs:1130
↓ 3 callers
Function
gather_skills_files
Gather SKILL.md files from the skills/ directory. Always includes `concepts/SKILL.md`. When a language is specified, also includes the matching `{lang
tools/xtask-llm-benchmark/src/context/paths.rs:33
↓ 3 callers
Function
gen_and_print_imports
Use `search_function` on `roots` to detect required imports, then print them with `print_imports`. `this_file` is passed and excluded for the case of
crates/codegen/src/typescript.rs:1013
↓ 3 callers
Function
gen_hash_and_ptrs
(rng: RngMut<'_>, max: u64, count: usize)
crates/table/benches/pointer_map.rs:29
↓ 3 callers
Function
gen_with
( with: impl Strategy<Value = T>, then: impl Fn(T) -> US, )
crates/sats/src/proptest.rs:215
↓ 3 callers
Method
generate
Uses BuiltPrompt (system, static_prefix, segments) and maps to xAI /chat/completions.
tools/xtask-llm-benchmark/src/llm/clients/xai.rs:24
↓ 3 callers
Function
generate_algebraic_value
Generates an `AlgebraicValue` typed at `ty`.
crates/sats/src/proptest.rs:128
↓ 3 callers
Method
generate_cols_name
Concatenate the column names from the `columns` WARNING: If the `ColId` not exist, is skipped. TODO(Tyler): This should return an error and not allow
crates/lib/src/db/raw_def/v8.rs:381
↓ 3 callers
Function
generate_database_name
()
crates/cli/src/subcommands/dev.rs:1517
↓ 3 callers
Function
generate_explicit_names_impl
( func_name: &str, func_handle: &Ident, explicit_name: Option<&LitStr>, )
crates/bindings-macro/src/reducer.rs:177
↓ 3 callers
Function
generate_random_connection_id
()
crates/client-api/src/routes/subscribe.rs:111
↓ 3 callers
Function
generate_row_type
Generates a `ProductType` that is good as a row type.
crates/sats/src/proptest.rs:106
↓ 3 callers
Method
get
Returns the element at `index` in the list.
crates/client-api-messages/src/websocket/common.rs:146
↓ 3 callers
Method
get
Returns the pointer at `key`.
crates/table/src/table_index/unique_direct_index.rs:154
↓ 3 callers
Function
getInitials
(name: string)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/client/src/App.tsx:39
↓ 3 callers
Function
getLastCallReducerRequestId
(wsAdapter: WebsocketTestAdapter)
crates/bindings-typescript/tests/db_connection.test.ts:70
↓ 3 callers
Function
getLayerId
(oldId: string)
tools/llm-oneshot/apps/paint-app/typescript/opus-4-5/spacetime/paint-app-20260112-154500/backend/spacetimedb/src/index.ts:1931
↓ 3 callers
Method
getMe
()
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-180000/client/src/api.ts:57
↓ 3 callers
Function
getMessageReactions
(messageId: bigint)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:448
↓ 3 callers
Method
getMessages
(roomId: number)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-180000/client/src/api.ts:169
↓ 3 callers
Method
getOrCreatePlayer
(playerId: number)
demo/Blackholio/client-ts/src/game/GameManager.ts:237
↓ 3 callers
Method
getSnapshot
(key: string)
crates/bindings-typescript/src/sdk/connection_manager.ts:343
↓ 3 callers
Method
getTableData
( tableInstance: any, whereExpr?: BooleanExpr<any> )
crates/bindings-typescript/src/tanstack/SpacetimeDBQueryClient.ts:160
↓ 3 callers
Function
getThreadReplies
(parentId: bigint)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:435
↓ 3 callers
Function
getToken
()
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/client/src/api.ts:4
↓ 3 callers
Method
getUnreadCounts
()
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-180000/client/src/api.ts:139
↓ 3 callers
Method
get_column_by_name
Get a column by the column's name.
crates/schema/src/def.rs:821
↓ 3 callers
Method
get_delete_table
Returns the [DeleteTable] for the given `table_id`, checking if it's empty.
crates/datastore/src/locking_tx_datastore/tx_state.rs:234
↓ 3 callers
Method
get_energy_balance
(&self, _identity: &Identity)
crates/client-api/src/routes/database.rs:1817
↓ 3 callers
Method
get_field_value
crates/bindings-cpp/include/spacetimedb/table_with_constraints.h:255
↓ 3 callers
Function
get_hooks
Get the hooks for the module. May use the module's exports if it's a v2+ module, or the registered global hooks if it's v1 module.
crates/core/src/host/v8/syscall/mod.rs:124
↓ 3 callers
Method
get_index_by_id_with_table
Returns the table for `table_id` combined with the index for `index_id`, if both exist.
crates/datastore/src/locking_tx_datastore/tx_state.rs:189
↓ 3 callers
Method
get_instance
(&self)
crates/core/src/host/module_host.rs:1368
↓ 3 callers
Function
get_jwt
(connection_id: [u8; 16])
crates/bindings-sys/src/lib.rs:1483
↓ 3 callers
Method
get_mem
Returns a reference to the memory, assumed to be initialized.
crates/core/src/host/wasmtime/wasm_instance_env.rs:295
↓ 3 callers
Function
get_mut
(row_data: &mut Bytes, offset: PageOffset)
crates/table/src/page.rs:1065
↓ 3 callers
Method
get_offset_index
(&self, offset: TxOffset)
crates/commitlog/src/repo/fs.rs:370
↓ 3 callers
Function
get_or_insert_slot
Get the slot `T` from `isolate`, or create it with the value `default()` if it doesn't exist.
crates/core/src/host/v8/error.rs:573
↓ 3 callers
Method
get_parsed
(&self)
crates/bindings/src/lib.rs:1627
↓ 3 callers
Function
get_raw_issuer
Get the issuer out of a token without validating the signature.
crates/core/src/auth/token_validation.rs:247
↓ 3 callers
Method
get_replicas_by_database
(&self, database_id: u64)
crates/standalone/src/control_db.rs:466
↓ 3 callers
Method
get_row_data
Returns the bytes for the fixed portion of this row.
crates/table/src/table.rs:1927
↓ 3 callers
Method
get_row_type
Returns the row type for rows in this table.
crates/table/src/table.rs:1388
↓ 3 callers
Method
get_schema
(&self, table_id: TableId)
crates/datastore/src/locking_tx_datastore/committed_state.rs:141
↓ 3 callers
Function
get_sequence_mut
(seq_state: &mut SequencesState, seq_id: SequenceId)
crates/datastore/src/locking_tx_datastore/mut_tx.rs:1720
↓ 3 callers
Method
get_sequence_mut
(&mut self, seq_id: SequenceId)
crates/datastore/src/locking_tx_datastore/sequence.rs:222
↓ 3 callers
Method
get_u16
(&mut self)
crates/sats/src/buffer.rs:206
↓ 3 callers
Method
guard_mut_tx
The same as [`Self::guard_tx`] but for mutable transactions. By default, `tx` is committed when the returned [`ScopeGuard`] is dropped, and reports t
crates/core/src/subscription/module_subscription_actor.rs:1952
↓ 3 callers
Method
guard_tx
Helper wrapping a [`TxId`] in a scopegard, with a configurable drop fn. By default, `tx` is released when the returned [`ScopeGuard`] is dropped, and
crates/core/src/subscription/module_subscription_actor.rs:1933
↓ 3 callers
Function
h_f64
(h: &HeaderMap, k: &str)
tools/xtask-llm-benchmark/src/llm/clients/anthropic.rs:209
↓ 3 callers
Function
handleSendEphemeral
()
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:322
↓ 3 callers
Function
handleToggleReaction
(messageId: bigint, emoji: string)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/client/src/App.tsx:429
↓ 3 callers
Method
handle_cmd
(&mut self, cmds: ViewCommand, inst: &mut I)
crates/core/src/host/wasm_common/module_host_actor.rs:1148
↓ 3 callers
Function
handle_detached_worker_request
( ctx: &'static str, on_panic: JsFatalHook, f: impl FnOnce() -> bool, )
crates/core/src/host/v8/mod.rs:938
↓ 3 callers
Function
handle_http_route_impl
( worker_ctx: S, name_or_identity: NameOrIdentity, handler_path: String, original_uri: http::U
crates/client-api/src/routes/database.rs:268
↓ 3 callers
Method
handle_outer_error
(&mut self, energy: &EnergyStats, reducer_name: &str)
crates/core/src/host/wasm_common/module_host_actor.rs:1097
↓ 3 callers
Function
handle_sys_call_error
Converts a `SysCallError` into a `ExceptionThrown`.
crates/core/src/host/v8/syscall/v1.rs:284
↓ 3 callers
Function
has_constraint
crates/bindings-cpp/include/spacetimedb/database.h:44
↓ 3 callers
Method
has_indexed
Checks if the 'INDEXED' constraint is set.
crates/primitives/src/attr.rs:112
↓ 3 callers
Function
has_path
(item: &Item)
crates/cli/src/subcommands/init.rs:1970
↓ 3 callers
Method
has_primary_key
Checks if the 'PRIMARY_KEY' constraint is set.
crates/primitives/src/attr.rs:117
↓ 3 callers
Method
has_read_access
(&self, table_access: StAccess)
crates/lib/src/identity.rs:86
↓ 3 callers
Function
hash_bsatn
(state: &mut impl Hasher, ty: &AlgebraicType, de: Deserializer<'_, impl BufReader<'a>>)
crates/sats/src/algebraic_value_hash.rs:125
↓ 3 callers
Function
hash_len_and_bytes
Hashes a `len` prefix as well as `bytes`.
crates/sats/src/algebraic_value_hash.rs:228
↓ 3 callers
Method
head
Registers `handler` to handle `HEAD` requests at `path`. Panics if `self` already has a handler on this method at this path, including one registered
crates/bindings/src/http.rs:265
↓ 3 callers
Function
httpCall
( name: string, args?: Record<string, unknown>, )
templates/keynote-2/src/connectors/bun.ts:8
↓ 3 callers
Function
httpCall
(name: string, args?: Record<string, unknown>)
templates/keynote-2/src/connectors/rpc/planetscale_pg_rpc.ts:14
↓ 3 callers
Function
httpCall
(name: string, args?: Record<string, unknown>)
templates/keynote-2/src/connectors/rpc/supabase_rpc.ts:14
↓ 3 callers
Method
identity
(out Identity dest)
crates/bindings-csharp/Runtime/Internal/FFI.cs:377
↓ 3 callers
Function
inc
(ctx: &ReducerContext, arg: ScheduledCounter)
crates/smoketests/modules/delete-database/src/lib.rs:19
↓ 3 callers
Function
index_id_from_name
(name: &str)
crates/bindings-sys/src/lib.rs:1105
↓ 3 callers
Function
index_path
(dir: &Path)
crates/commitlog/src/index/indexfile.rs:408
↓ 3 callers
Function
index_row_est
The estimated number of rows that an index probe will return.
crates/core/src/estimation.rs:122
↓ 3 callers
Method
index_scan_point
( &'a self, tx: &'a MutTx, index_id: IndexId, point: &'p [u8], )
crates/engine/src/relational_db.rs:1448
↓ 3 callers
Method
index_scan_point_for_delta
( &self, table_id: TableId, index_id: IndexId, delta: Delta, point: &A
crates/core/src/subscription/tx.rs:234
← previous
next →
2,701–2,800 of 27,764, ranked by callers