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
↓ 5 callers
Function
end
(id: number)
templates/keynote-2/src/core/collision_tracker.ts:21
↓ 5 callers
Function
enospc
()
crates/commitlog/src/repo/mem/segment.rs:251
↓ 5 callers
Function
ensureRpcServer
(cfg: RpcServerConfig)
templates/keynote-2/src/init/init_rpc_servers.ts:28
↓ 5 callers
Method
entry_for
Returns the entry for `table_id`.
crates/datastore/src/traits.rs:380
↓ 5 callers
Function
env_on_isolate
Returns the `JsInstanceEnv` bound to an [`Isolate`], fallibly.
crates/core/src/host/v8/mod.rs:335
↓ 5 callers
Function
env_on_isolate_unwrap
Returns the `JsInstanceEnv` bound to an [`Isolate`], or panic if not set.
crates/core/src/host/v8/mod.rs:340
↓ 5 callers
Method
equals
* Check if two identities are equal.
crates/bindings-typescript/src/lib/identity.ts:48
↓ 5 callers
Function
expect_fit
(x: B)
crates/data-structures/src/slim_slice.rs:131
↓ 5 callers
Function
fallocate
(_f: &mut impl FileLike, _opts: &Options)
crates/commitlog/src/repo/mod.rs:468
↓ 5 callers
Method
files
Obtain an iterator over the [`PathBuf`]s of all objects
crates/snapshot/src/lib.rs:615
↓ 5 callers
Function
finish_opcall
Finish the op call and calculate its [`ExecutionStats`].
crates/core/src/host/wasmtime/wasmtime_module.rs:931
↓ 5 callers
Function
first
(_ctx: &ReducerContext)
crates/smoketests/modules/panic/src/lib.rs:8
↓ 5 callers
Function
flush
(out: &mut impl std::io::Write)
crates/sqltest/src/main.rs:77
↓ 5 callers
Function
formatMoney
(cents: bigint)
templates/money-exchange-react-ts/src/money.ts:3
↓ 5 callers
Method
gen_next_value
Returns the next value iff no allocation is needed.
crates/datastore/src/locking_tx_datastore/sequence.rs:128
↓ 5 callers
Method
get
Get a buffer from the pool, or create a new one. The buffer is returned to the pool when the returned [`ScopeGuard`] goes out of scope.
crates/snapshot/src/remote.rs:795
↓ 5 callers
Method
getCounter
* Extract the monotonic counter from a UUIDv7. * * Intended for testing and diagnostics. * Behavior is undefined if called on a non-V7 UUID.
crates/bindings-typescript/src/lib/uuid.ts:313
↓ 5 callers
Function
getInitials
(name: string | undefined)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260105-180000/client/src/App.tsx:217
↓ 5 callers
Function
getSocket
()
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/client/src/socket.ts:7
↓ 5 callers
Method
getVersion
* Returns the version of this UUID. * * This represents the algorithm used to generate the value. * * @returns A `UuidVersion` * @throw
crates/bindings-typescript/src/lib/uuid.ts:286
↓ 5 callers
Method
get_database_by_identity
(&self, _database_identity: &Identity)
crates/client-api/src/routes/database.rs:1802
↓ 5 callers
Method
get_index_by_cols
Returns an index for `table_id` on `cols`, if any.
crates/datastore/src/locking_tx_datastore/tx_state.rs:182
↓ 5 callers
Function
get_ref
(row_data: &Bytes, offset: PageOffset)
crates/table/src/page.rs:1050
↓ 5 callers
Method
get_row_type
(&self, table_id: TableId)
crates/datastore/src/locking_tx_datastore/mut_tx.rs:915
↓ 5 callers
Method
get_table_and_index
Translate `index_id` to the table id, and commit/tx indices.
crates/datastore/src/locking_tx_datastore/mut_tx.rs:1681
↓ 5 callers
Method
get_u64
(&mut self)
crates/sats/src/buffer.rs:224
↓ 5 callers
Function
git_tracked_files
(pathspec: &str)
tools/ci/src/main.rs:101
↓ 5 callers
Method
guard_closed
(&self)
crates/core/src/host/module_host.rs:1770
↓ 5 callers
Function
handleSelectRoom
(room: Room)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/client/src/App.tsx:1431
↓ 5 callers
Function
handle_ffi_error
crates/bindings-cpp/include/spacetimedb/table.h:149
↓ 5 callers
Function
heap_usage
(stats: &v8::HeapStatistics)
crates/core/src/host/v8/mod.rs:1130
↓ 5 callers
Method
identity
Get a handle on the `identity` unique index on the table `player`.
sdks/rust/tests/view-client/src/module_bindings/player_table.rs:142
↓ 5 callers
Function
identityEq
( a: { toHexString(): string }, b: { toHexString(): string } )
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/backend/spacetimedb/src/index.ts:37
↓ 5 callers
Method
idx
Returns the index as a `usize`.
crates/table/src/pointer_map.rs:38
↓ 5 callers
Method
index_cols
(&self)
crates/physical-plan/src/plan.rs:1330
↓ 5 callers
Method
index_id_from_name_mut_tx
(&self, tx: &Self::MutTx, index_name: &str)
crates/datastore/src/locking_tx_datastore/datastore.rs:539
↓ 5 callers
Method
indexed_simple_enum
(&self)
sdks/rust/tests/test-client/src/module_bindings/indexed_simple_enum_table.rs:33
↓ 5 callers
Method
info
(&self)
crates/core/src/host/wasm_common/module_host_actor.rs:450
↓ 5 callers
Function
init_template
Runs `spacetime init --template <id>` into a fresh temp directory. Returns `(tmpdir, project_path)` - caller must keep `tmpdir` alive.
crates/smoketests/tests/smoketests/templates.rs:96
↓ 5 callers
Method
inner
Returns the [`TableSchema`] of the underlying datastore table. For views, this schema will include the internal `arg_hash` column when present.
crates/schema/src/schema.rs:98
↓ 5 callers
Method
insert_index
Inserts a new `index` into the table. The index will be populated using the rows of the table. # Panics Panics if any row would violate `index`'s u
crates/table/src/table.rs:1443
↓ 5 callers
Method
insert_left_then
( &self, id: u64, filter: u64, callback: impl FnOnce(&super::ReducerEventCont
sdks/rust/tests/procedural-view-pk-client/src/module_bindings/insert_left_reducer.rs:60
↓ 5 callers
Method
insert_pk_u_32_then
( &self, n: u32, data: i32, callback: impl FnOnce(&super::ReducerEventContext
sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_reducer.rs:60
↓ 5 callers
Method
insert_product_value
(&mut self, table_id: TableId, row: &ProductValue)
crates/datastore/src/locking_tx_datastore/mut_tx.rs:560
↓ 5 callers
Function
insert_three_i32s
(stdb: &RelationalDB, tx: &mut MutTx, table_id: TableId)
crates/engine/src/relational_db.rs:2868
↓ 5 callers
Method
insert_unique_u_32_then
( &self, n: u32, data: i32, callback: impl FnOnce(&super::ReducerEventContext
sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_reducer.rs:60
↓ 5 callers
Method
into_bytes
Treat the body as a sequence of bytes.
crates/bindings/src/http.rs:694
↓ 5 callers
Method
into_inner
Discard the `Varchar` wrapper.
crates/commitlog/src/varchar.rs:62
↓ 5 callers
Method
into_inner
(self)
crates/sats/src/raw_identifier.rs:21
↓ 5 callers
Function
is_error
crates/bindings-cpp/include/spacetimedb/abi/opaque_types.h:157
↓ 5 callers
Method
is_from_cli
Check if a value was provided via CLI (not from config). Only returns true if the user explicitly provided the value, not if it came from a default.
crates/cli/src/spacetime_config.rs:430
↓ 5 callers
Method
is_integer
Returns whether this type is one of the integer types, e.g., `U64` and `I32`.
crates/sats/src/algebraic_type.rs:264
↓ 5 callers
Method
is_time_duration
Returns whether this is the special case of `spacetimedb_lib::TimeDuration`. Does not follow `Ref`s.
crates/sats/src/product_type.rs:139
↓ 5 callers
Function
is_type_blueprintable_for_delegates
Helper function to check if a type can be used as a delegate parameter For delegates, structs are blueprintable even if they contain non-blueprintable
crates/codegen/src/unrealcpp.rs:6300
↓ 5 callers
Method
is_unique
Is there a unique constraint for this set of columns?
crates/schema/src/schema.rs:458
↓ 5 callers
Method
is_valid_for_client_type_use
Validates that the type can be used to generate a *use* of a type in a `SpacetimeDB` client module. (As opposed to a *definition* of a type.) This me
crates/sats/src/algebraic_type.rs:466
↓ 5 callers
Method
iter_by_col_eq_mut
Returns an iterator, yielding every row in the table identified by `table_id`, where the column data identified by `cols` matches `value`. Matching i
crates/engine/src/relational_db.rs:1386
↓ 5 callers
Method
iter_set
Returns all the set indices.
crates/table/src/fixed_bit_set.rs:238
↓ 5 callers
Method
iter_table_entries
Returns an iterator over all [`TxDataTableEntry`]s in this transaction.
crates/datastore/src/traits.rs:395
↓ 5 callers
Function
iter_views
Iterate over all the [`ViewDef`]s defined by the module, in alphabetical order by name. Sorting is necessary to have deterministic reproducible codeg
crates/codegen/src/util.rs:165
↓ 5 callers
Method
key_from_row
(&self, row_ref: RowRef<'a>)
crates/table/src/table_index/mod.rs:2323
↓ 5 callers
Method
latest_snapshot_older_than
Return the `TxOffset` of the highest-offset complete snapshot in the repository lower than or equal to `upper_bound`. When searching for a snapshot t
crates/snapshot/src/lib.rs:1083
↓ 5 callers
Method
log_traceback
(&self, func_type: &str, func: &str, trap: &anyhow::Error)
crates/core/src/host/wasmtime/wasmtime_module.rs:737
↓ 5 callers
Function
logs_filtered
(test: &Smoketest, n: usize, extra_args: &[&str])
crates/smoketests/tests/smoketests/logs_level_filter.rs:3
↓ 5 callers
Function
makeCtx
()
crates/bindings-typescript/tests/http_handlers.test.ts:68
↓ 5 callers
Function
make_special_type
* Create a special type ProductType with the given tag and data type. */
crates/bindings-cpp/include/spacetimedb/bsatn/type_extensions.h:257
↓ 5 callers
Function
make_test
(test_name: &str)
sdks/unreal/tests/test_view_pk.rs:14
↓ 5 callers
Function
make_uint8array
Taking a scope and a buffer, return a `v8::Local<'scope, v8::Uint8Array>`.
crates/core/src/host/v8/util.rs:24
↓ 5 callers
Method
mark_durable_at
(&self, offset: TxOffset)
crates/core/src/client/client_connection.rs:1283
↓ 5 callers
Method
materialize_view_call
Materialize a view call and replace its committed read set on transaction commit. The read set is only marked for replacement after materialization s
crates/engine/src/relational_db.rs:1606
↓ 5 callers
Function
messages
(records: &[serde_json::Value])
crates/smoketests/tests/smoketests/logs_level_filter.rs:20
↓ 5 callers
Function
module_def
()
crates/expr/src/check.rs:240
↓ 5 callers
Function
module_def
()
crates/expr/src/rls.rs:536
↓ 5 callers
Method
my_player_and_level
(&self)
sdks/rust/tests/view-client/src/module_bindings/my_player_and_level_table.rs:32
↓ 5 callers
Method
my_table
(&self)
sdks/rust/tests/procedure-client/src/module_bindings/my_table_table.rs:33
↓ 5 callers
Method
ne
(self, rhs: R)
crates/query-builder/src/table.rs:68
↓ 5 callers
Method
needs_allocation
The allocated value represents the place where the sequence would start from if the system memory was lost. Therefore we cannot generate the next valu
crates/datastore/src/locking_tx_datastore/sequence.rs:166
↓ 5 callers
Method
next_u64
(&mut self)
crates/runtime/src/sim/rng.rs:50
↓ 5 callers
Method
node_record
Look up the record for a node, panicking if the node is unknown.
crates/runtime/src/sim/executor/mod.rs:527
↓ 5 callers
Method
num_keys
(&self)
crates/table/src/table_index/mod.rs:1787
↓ 5 callers
Method
num_private_cols
How many private columns does this table have? Will only be non-zero in the case of views.
crates/schema/src/schema.rs:272
↓ 5 callers
Function
ok_or_compile_error
Run `f`, converting `Err` returns into a compile error. This helper allows code within the closure `f` to use `?` for early return.
crates/bindings-macro/src/util.rs:27
↓ 5 callers
Method
on_disconnect
(&mut self, _ctx: &M::ErrorContext)
sdks/rust/src/subscription.rs:49
↓ 5 callers
Method
on_insert
( &self, callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, )
sdks/rust/tests/case-conversion-client/src/module_bindings/person_2_table.rs:57
↓ 5 callers
Method
on_insert
( &self, callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, )
sdks/rust/tests/procedure-concurrency-client/src/module_bindings/scheduled_reducer_row_table.rs:56
↓ 5 callers
Method
one_col
(&self)
crates/bindings-macro/src/table.rs:518
↓ 5 callers
Function
override_nuget_package
Override nuget config to use a local NuGet package on a .NET project.
crates/smoketests/tests/smoketests/quickstart.rs:135
↓ 5 callers
Method
parseVersionString
(version: string)
crates/bindings-typescript/src/sdk/version.ts:94
↓ 5 callers
Method
pg_port
Enables the PostgreSQL wire protocol on the specified port.
crates/smoketests/src/lib.rs:775
↓ 5 callers
Method
physical_plan
Unwrap the underlying physical plan
crates/physical-plan/src/plan.rs:116
↓ 5 callers
Method
pid_file
(&self)
crates/paths/src/server.rs:28
↓ 5 callers
Method
pk_simple_enum
(&self)
sdks/rust/tests/test-client/src/module_bindings/pk_simple_enum_table.rs:33
↓ 5 callers
Method
pk_uuid
(&self)
modules/sdk-test-procedure-cpp/client/src/module_bindings/pk_uuid_table.rs:32
↓ 5 callers
Method
pop_back
(&mut self)
crates/core/src/client/client_connection.rs:559
↓ 5 callers
Function
prepare_store_for_call
(store: &mut Store<WasmInstanceEnv>, budget: FunctionBudget)
crates/core/src/host/wasmtime/wasmtime_module.rs:892
↓ 5 callers
Function
print_file_header
(output: &mut Indenter, include_version: bool)
crates/codegen/src/rust.rs:927
↓ 5 callers
Function
print_file_header
(output: &mut Indenter, include_version: bool, type_builder_only: bool)
crates/codegen/src/typescript.rs:576
↓ 5 callers
Function
print_lines
(output: &mut Indenter, lines: &[&str])
crates/codegen/src/util.rs:52
↓ 5 callers
Method
product_type
(&self)
crates/sats/src/layout.rs:789
↓ 5 callers
Method
publish
(&self, params: PublishParams<'_>, phase: &str)
tools/xtask-llm-benchmark/src/bench/runner.rs:146
← previous
next →
1,701–1,800 of 27,764, ranked by callers