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
↓ 4 callers
Function
identity_from_le_ivec
A helper to convert a `sled::IVec` into an `Identity`. This expects the identity to be in LITTLE_ENDIAN format. This fails if the `sled::IVec` is not
crates/standalone/src/control_db.rs:92
↓ 4 callers
Function
inc
(atomic: &AtomicUsize)
crates/data-structures/src/object_pool.rs:161
↓ 4 callers
Method
index_lookup
Looks up the key-value pair at the specified index in the index file. # Errors - `IndexError::OutOfMemory`: If the index is out of memory range.
crates/commitlog/src/index/indexfile.rs:130
↓ 4 callers
Function
initial_module_def
()
crates/schema/src/auto_migrate.rs:1205
↓ 4 callers
Method
insert_one_u_8_then
( &self, n: u8, callback: impl FnOnce(&super::ReducerEventContext, Result<Result<(),
sdks/rust/tests/test-client/src/module_bindings/insert_one_u_8_reducer.rs:55
↓ 4 callers
Method
insert_pk_u_8_then
( &self, n: u8, data: i32, callback: impl FnOnce(&super::ReducerEventContext,
sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_8_reducer.rs:60
↓ 4 callers
Function
insert_rows
(datastore: &Locking, rows: Vec<ProductValue>, table_id: TableId)
crates/datastore/src/locking_tx_datastore/datastore.rs:2929
↓ 4 callers
Method
insert_view_pk_player_then
( &self, id: u64, name: String, callback: impl FnOnce(&super::ReducerEventCon
sdks/rust/tests/view-pk-client/src/module_bindings/insert_view_pk_player_reducer.rs:60
↓ 4 callers
Function
insert_while
( page: &mut Page, mut next_val: u64, fixed_row_size: Size, vl_num: usize,
crates/table/src/page.rs:2064
↓ 4 callers
Function
install_typescript_dependencies
( package_dir: &Path, package_manager: Option<PackageManager>, )
crates/cli/src/subcommands/init.rs:451
↓ 4 callers
Method
intern_use
Intern a use. This is only used on types *inside* Map, Array, and Option types.
crates/schema/src/type_for_generate.rs:598
↓ 4 callers
Method
intoRoutes
()
crates/bindings-typescript/src/server/http_handlers.ts:334
↓ 4 callers
Method
into_exception
(self, _: &PinScope<'scope, '_>)
crates/core/src/host/v8/error.rs:36
↓ 4 callers
Method
invoke
(view: V, ctx: ViewContext, args: &'a [u8])
crates/bindings/src/rt.rs:412
↓ 4 callers
Method
is_bytes
Returns whether this type is `AlgebraicType::bytes()`.
crates/sats/src/algebraic_type.rs:291
↓ 4 callers
Method
is_compressed
(&self)
crates/fs-utils/src/compression.rs:45
↓ 4 callers
Method
is_empty
Returns whether the applied diff is empty.
sdks/rust/src/client_cache.rs:169
↓ 4 callers
Method
is_empty
Returns whether the map is empty.
crates/data-structures/src/small_map.rs:139
↓ 4 callers
Method
is_ended
(&self)
sdks/rust/src/subscription.rs:405
↓ 4 callers
Method
is_full
Returns whether the row is full with respect to storing a fixed row with `fixed_row_size` and no variable component.
crates/table/src/page.rs:1385
↓ 4 callers
Method
is_ok
---- State ----
crates/bindings-cpp/include/spacetimedb/outcome.h:53
↓ 4 callers
Method
is_private
(&self)
crates/schema/src/def.rs:1747
↓ 4 callers
Method
is_schedule_at
Return whether this sum type is the special `ScheduleAt` type, `Interval(u64) | Time(u64)`. Does not follow `Ref`s.
crates/sats/src/sum_type.rs:184
↓ 4 callers
Method
is_unique
(&self)
crates/core/src/client/messages.rs:147
↓ 4 callers
Method
is_unit
Returns whether this is a unit variant.
crates/sats/src/layout.rs:873
↓ 4 callers
Method
is_var_len_null
(self)
crates/table/src/indexes.rs:107
↓ 4 callers
Method
is_zero
(&self)
crates/snapshot/src/lib.rs:685
↓ 4 callers
Function
iter
(tx_state: &'a TxState, committed_state: &'a CommittedState, table_id: TableId)
crates/datastore/src/locking_tx_datastore/mut_tx.rs:3439
↓ 4 callers
Method
iter_blobs
(&self)
crates/table/src/blob_store.rs:156
↓ 4 callers
Method
launch_module
(self)
crates/core/src/host/host_controller.rs:766
↓ 4 callers
Method
leader
(&self, database_id: u64)
crates/standalone/src/lib.rs:176
↓ 4 callers
Method
left_semijoin
( self, right: Table<R>, on: impl Fn(&L::IxCols, &R::IxCols) -> IxJoinEq<L, R, V>,
crates/query-builder/src/join.rs:69
↓ 4 callers
Function
link_imports
(linker: &mut Linker<WasmInstanceEnv>, async_import_mode: AsyncImportMode)
crates/core/src/host/wasmtime/wasmtime_module.rs:81
↓ 4 callers
Function
load_json_value
Load a JSON5 file as a serde_json::Value, or None if the file doesn't exist.
crates/cli/src/spacetime_config.rs:902
↓ 4 callers
Method
load_module
Load a module with the given config. If "reuse_db_path" is set, the module will be loaded in the given path, without resetting the database. This is u
crates/testing/src/modules.rs:258
↓ 4 callers
Function
log_and_500
(e: impl std::fmt::Display)
crates/client-api/src/lib.rs:641
↓ 4 callers
Method
log_record_function
Returns the name of the most recent reducer to be run in this environment, or `None` if no reducer is actively being invoked.
crates/core/src/host/v8/mod.rs:389
↓ 4 callers
Method
lookup_st_view
(&self, view_id: ViewId)
crates/datastore/src/locking_tx_datastore/mut_tx.rs:819
↓ 4 callers
Method
lt
(x: any)
crates/bindings-typescript/src/lib/query.ts:501
↓ 4 callers
Function
makeReducerExport
( ctx: SchemaInner, opts: ReducerOpts | undefined, params: RowObj | RowBuilder<RowObj>, fn: Reducer<an
crates/bindings-typescript/src/server/reducers.ts:24
↓ 4 callers
Function
make_special_type
* Create a special type ProductType with the given tag and data type. */
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/type_extensions.h:250
↓ 4 callers
Function
make_temp_paths
()
crates/update/src/cli/uninstall.rs:48
↓ 4 callers
Function
make_test
(test_name: &str)
sdks/unreal/tests/test_view.rs:14
↓ 4 callers
Function
make_test_with_suite
(suite: &TestSuite, test_name: &str)
sdks/unreal/tests/sdk_unreal_harness.rs:91
↓ 4 callers
Method
map_if
Applies `f` to a subplan if `ok` returns a match. Recurses until an `ok` match is found.
crates/physical-plan/src/plan.rs:383
↓ 4 callers
Method
mark_notice_printed
(&mut self, latest: &semver::Version, now: u64)
crates/update/src/update_notice.rs:58
↓ 4 callers
Method
matches
(plan: &Self::Plan)
crates/physical-plan/src/rules.rs:54
↓ 4 callers
Method
materialize_views_and_downgrade_tx
( &self, mut tx: MutTxId, instance: Option<&mut RefInstance<'_, I>>, view_coll
crates/core/src/subscription/module_subscription_actor.rs:1890
↓ 4 callers
Function
maybe_generate_analysis
(cfg: &BenchRunContext<'_>, outcomes: &[RunOutcome])
tools/xtask-llm-benchmark/src/bench/runner.rs:433
↓ 4 callers
Method
message
Returns a description of the errno value, if any.
crates/bindings-sys/src/lib.rs:1000
↓ 4 callers
Function
metadata
()
crates/commitlog/src/segment.rs:812
↓ 4 callers
Method
method
()
crates/bindings-typescript/src/server/http_handlers.ts:181
↓ 4 callers
Method
micros_since_epoch
Getters
crates/bindings-cpp/include/spacetimedb/bsatn/timestamp.h:62
↓ 4 callers
Method
module_logs
(self)
crates/paths/src/server.rs:129
↓ 4 callers
Method
module_specific_cli_args
Get all module-specific keys that were provided via CLI.
crates/cli/src/spacetime_config.rs:457
↓ 4 callers
Function
mount
(device_file: &Path, mountpoint: &Path, len: u64)
crates/durability/tests/io/fallocate.rs:216
↓ 4 callers
Method
move_player_then
( &self, dx: i32, dy: i32, callback: impl FnOnce(&super::ReducerEventContext,
sdks/rust/tests/view-client/src/module_bindings/move_player_reducer.rs:60
↓ 4 callers
Method
my_player
(&self)
sdks/rust/tests/view-client/src/module_bindings/my_player_table.rs:32
↓ 4 callers
Method
nearby_players
(&self)
sdks/rust/tests/view-client/src/module_bindings/nearby_players_table.rs:32
↓ 4 callers
Function
newLoad
(initialLoad: number)
modules/benchmarks-ts/src/load.ts:9
↓ 4 callers
Method
new_index
Returns a new [`TableIndex`] for `table`.
crates/table/src/table.rs:1423
↓ 4 callers
Method
next_element
Deserializes an `T` from the input. Returns `Ok(Some(value))` for the next element in the product, or `Ok(None)` if there are no more remaining items
crates/sats/src/de.rs:379
↓ 4 callers
Method
next_element_seed
(&mut self, seed: T)
crates/sats/src/de/serde.rs:232
↓ 4 callers
Function
next_request_id
Get the next request ID to use for a WebSocket message.
sdks/rust/src/db_connection.rs:1613
↓ 4 callers
Function
normalize
(s: &str, collapse_ws: bool)
tools/xtask-llm-benchmark/src/eval/utils.rs:37
↓ 4 callers
Method
normalize
Normalize a `TableSchema`. The result is semantically equivalent, but may have reordered indexes, constraints, or sequences. Columns will not be reord
crates/schema/src/schema.rs:681
↓ 4 callers
Function
normalize_path
Converts a PathBuf to a forward-slash string
sdks/unreal/tests/sdk_unreal_harness.rs:22
↓ 4 callers
Method
num_cols
How many columns does this table have?
crates/schema/src/schema.rs:315
↓ 4 callers
Method
num_rows
(&self)
crates/core/src/client/messages.rs:254
↓ 4 callers
Method
num_rows
Returns the number of rows stored in this page. This method runs in constant time.
crates/table/src/page.rs:1184
↓ 4 callers
Function
o_rdonly
[`OpenOptions`] corresponding to opening a file with `O_RDONLY`, i.e. opening an existing file for reading.
crates/fs-utils/src/dir_trie.rs:35
↓ 4 callers
Method
onConnect
( callback: (ctx: DbConnectionImpl<RemoteModule>, ...args: any[]) => void )
crates/bindings-typescript/src/sdk/db_connection_impl.ts:1344
↓ 4 callers
Method
onConnectError
( callback: (ctx: DbConnectionImpl<RemoteModule>, ...args: any[]) => void )
crates/bindings-typescript/src/sdk/db_connection_impl.ts:1356
↓ 4 callers
Method
onDisconnect
( callback: (ctx: DbConnectionImpl<RemoteModule>, ...args: any[]) => void )
crates/bindings-typescript/src/sdk/db_connection_impl.ts:1350
↓ 4 callers
Method
one_u_8
(&self)
sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs:32
↓ 4 callers
Method
or
(self, other: BoolExpr<T>)
crates/query-builder/src/expr.rs:30
↓ 4 callers
Function
overlay_json
Overlay `overlay` values onto `base`. Most keys use top-level replacement. `children` is merged recursively by index, up to the lower of base/overlay
crates/cli/src/spacetime_config.rs:989
↓ 4 callers
Function
pad
(n: number)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/spacetime/chat-app-20260107-092240/client/src/App.tsx:43
↓ 4 callers
Method
pages
Returns the pages storing the physical rows of this table.
crates/table/src/table.rs:2401
↓ 4 callers
Function
parseStamp
(text: string)
tools/llm-sequential-upgrade/perf-benchmark/src/metrics.ts:67
↓ 4 callers
Function
parse_config
Parse a TOML file at the given path, returning `None` if the file does not exist. WARNING**: Comments and formatting in the file will be lost.
crates/core/src/config.rs:15
↓ 4 callers
Function
parse_database_name
(s: &str)
crates/client-api-messages/src/name.rs:219
↓ 4 callers
Function
parse_expr_opt
Parse an optional scalar expression
crates/sql-parser/src/parser/mod.rs:313
↓ 4 callers
Function
parse_server_lang
(lang: &Option<String>)
crates/cli/src/subcommands/init.rs:1930
↓ 4 callers
Function
parse_signed_literal_expr
( op: UnaryOperator, expr: Expr, unsupported: fn(Expr) -> SqlUnsupported, )
crates/sql-parser/src/parser/mod.rs:274
↓ 4 callers
Function
parse_table_update
( raw_updates: __ws::TableUpdate<__ws::BsatnFormat>, )
modules/sdk-test-procedure-cpp/client/src/module_bindings/pk_uuid_table.rs:87
↓ 4 callers
Function
parse_table_update
(raw_updates: __ws::v2::TableUpdate)
sdks/rust/tests/procedural-view-pk-client/src/module_bindings/left_source_table.rs:135
↓ 4 callers
Function
parse_table_update
(raw_updates: __ws::v2::TableUpdate)
sdks/rust/tests/procedure-client/src/module_bindings/pk_uuid_table.rs:87
↓ 4 callers
Function
partition_results
Partition task results into completed outcomes and retry candidates. Tasks where the LLM never responded (provider/setup error) are returned for retry
tools/xtask-llm-benchmark/src/bench/runner.rs:379
↓ 4 callers
Method
path
(config_dir: &Path)
crates/update/src/update_notice.rs:49
↓ 4 callers
Method
person_2
(&self)
sdks/rust/tests/case-conversion-client/src/module_bindings/person_2_table.rs:33
↓ 4 callers
Method
plans_fragments
Returns the plan fragments that comprise this subscription. Will only return one element unless there is a table with multiple RLS rules.
crates/core/src/subscription/module_subscription_manager.rs:130
↓ 4 callers
Method
post_json
POST a JSON body and return the response as UTF-8 text.
tools/xtask-llm-benchmark/src/llm/clients/http.rs:64
↓ 4 callers
Method
primary_key
Creates a new `Constraints` instance with [ColumnAttribute::PRIMARY_KEY] set.
crates/primitives/src/attr.rs:186
↓ 4 callers
Function
print_auto_generated_version_comment
(output: &mut Indenter)
crates/codegen/src/util.rs:70
↓ 4 callers
Function
procedure_args_type_name
(reducer_name: &Identifier)
crates/codegen/src/typescript.rs:890
↓ 4 callers
Function
procedure_commit_mut_tx
()
crates/bindings-sys/src/lib.rs:1596
↓ 4 callers
Method
process_error
Process `err` according to `self.error_behavior`, either warning about it or returning it. If this method returns an `Err`, the caller should bubble
crates/datastore/src/locking_tx_datastore/replay.rs:251
↓ 4 callers
Method
product_kind
Returns the kind of the product.
crates/sats/src/de.rs:335
↓ 4 callers
Function
product_value_test_cases
()
crates/table/benches/page.rs:529
← previous
next →
2,201–2,300 of 27,764, ranked by callers