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
↓ 17 callers
Method
as_singleton
Returns `head` if that is the only element.
crates/primitives/src/col_list.rs:139
↓ 17 callers
Function
casing_for_lang
(lang: Lang)
tools/xtask-llm-benchmark/src/eval/sql_fmt.rs:13
↓ 17 callers
Method
clone
(&self)
sdks/rust/src/subscription.rs:460
↓ 17 callers
Function
connect
(db_name: &str, test_counter: &std::sync::Arc<TestCounter>)
sdks/rust/tests/test-client/src/test_handlers.rs:389
↓ 17 callers
Method
database_identity
Returns the database's identity.
crates/core/src/host/instance_env.rs:244
↓ 17 callers
Function
deserialize
(input: StdTokenStream)
crates/bindings-macro/src/lib.rs:269
↓ 17 callers
Function
ensure_binaries_built
Returns the path to the pre-built CLI binary. This function does NOT build anything.** The binary must already exist. Use `cargo smoketest` to build
crates/guard/src/lib.rs:65
↓ 17 callers
Method
entries
()
crates/bindings-typescript/src/sdk/client_cache.ts:67
↓ 17 callers
Function
getUserName
(identity: Identity)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:216
↓ 17 callers
Method
id
(&self)
tools/xtask-llm-benchmark/src/eval/scorers.rs:24
↓ 17 callers
Function
iter_procedures
Iterate over all the [`ProcedureDef`]s defined by the module, in alphabetical order by name. Skipping internal [`FunctionVisibiity::Internal`] proced
crates/codegen/src/util.rs:126
↓ 17 callers
Method
len
(&self)
crates/commitlog/src/tests/partial.rs:191
↓ 17 callers
Method
module_code
Sets the module code to compile and publish.
crates/smoketests/src/lib.rs:781
↓ 17 callers
Function
my_table
(col_type: AlgebraicType)
crates/engine/src/relational_db.rs:2347
↓ 17 callers
Method
onError
* Registers `callback` to run when this query either: * - Fails to be added to our subscribed set. * - Is unexpectedly removed from our subscrib
crates/bindings-typescript/src/sdk/subscription_builder_impl.ts:60
↓ 17 callers
Method
reborrow
(&mut self)
crates/sats/src/bsatn/de.rs:19
↓ 17 callers
Method
scan_rows
Returns an iterator over all the rows of `self`, yielded as [`RowRef`]s.
crates/table/src/table.rs:1535
↓ 17 callers
Method
sendToClient
(message: ServerMessage)
crates/bindings-typescript/src/sdk/websocket_test_adapter.ts:79
↓ 17 callers
Function
sql
( State(worker_ctx): State<S>, Path(name_or_identity): Path<SqlParams>, Query(params): Query<SqlQu
crates/client-api/src/routes/database.rs:759
↓ 17 callers
Method
test
(ReducerContext ctx, TestAlias arg, TestB arg2, TestC arg3, TestF arg4)
modules/module-test-cs/Lib.cs:307
↓ 17 callers
Method
to_product_value
Extract a `ProductValue` from the table. This is a potentially expensive operation, as it must walk the table's `ProductTypeLayout` and heap-allocate
crates/table/src/table.rs:1794
↓ 17 callers
Method
use_precompiled_module
Switches to using a precompiled module. After calling this, subsequent `publish_module*` calls will use the precompiled WASM file instead of building
crates/smoketests/src/lib.rs:1355
↓ 17 callers
Method
write_colored
(&mut self, text: &str, color: Option<Color>, bold: bool)
crates/schema/src/auto_migrate/termcolor_formatter.rs:85
↓ 16 callers
Method
Filter
(Column value)
sdks/csharp/src/Table.cs:153
↓ 16 callers
Method
GetAlgebraicType
( SpacetimeDB.BSATN.ITypeRegistrar registrar )
crates/bindings-csharp/Codegen.Tests/fixtures/server/snapshots/Type#EmptyClass.verified.cs:32
↓ 16 callers
Method
MakeUniqueConstraint
(ushort colIndex)
crates/bindings-csharp/Runtime/Internal/ITable.cs:229
↓ 16 callers
Method
RegisterTableDefaultValue
(string table, ushort colId, byte[] value)
crates/bindings-csharp/Runtime/Internal/Module.cs:429
↓ 16 callers
Method
SetLength
(long value)
sdks/csharp/src/ListStream.cs:82
↓ 16 callers
Method
Warn
(string message)
sdks/csharp/src/ISpacetimeDBLogger.cs:31
↓ 16 callers
Method
add_subscription
Adds a single subscription for a client.
crates/core/src/subscription/module_subscription_manager.rs:953
↓ 16 callers
Method
as_mut
(&mut self)
crates/commitlog/src/index/indexfile.rs:308
↓ 16 callers
Method
call_reducer_binary
(&self, reducer: &str, args: &sats::ProductValue)
crates/testing/src/modules.rs:96
↓ 16 callers
Method
caller
(&self)
crates/lib/src/identity.rs:102
↓ 16 callers
Method
cmp
(&self, other: &Self)
crates/primitives/src/col_list.rs:321
↓ 16 callers
Method
commit_mut_tx
This method only updates the in-memory `committed_state`. For durability, see `RelationalDB::commit_tx`.
crates/datastore/src/locking_tx_datastore/datastore.rs:929
↓ 16 callers
Method
contains
Returns whether `ptr`, belonging to a table in [`CommittedState`], is recorded as deleted.
crates/datastore/src/locking_tx_datastore/delete_table.rs:43
↓ 16 callers
Method
deref_slice
Get a byte slice of wasm memory given a pointer and a length.
crates/core/src/host/wasmtime/mod.rs:317
↓ 16 callers
Function
deserialize
(de: D)
crates/client-api/src/util/serde.rs:13
↓ 16 callers
Method
encode
( &self, rlb_pool: &impl RowListBuilderSource<F>, )
crates/core/src/host/module_host.rs:154
↓ 16 callers
Function
eq_bsatn_de
Deserializes from `de` an `rhs: T` and then proceeds to `lhs == rhs`.
crates/sats/src/bsatn/eq.rs:118
↓ 16 callers
Method
hash
(&self, state: &mut H)
crates/table/src/table.rs:2067
↓ 16 callers
Method
insert_player_then
( &self, identity: __sdk::Identity, level: u64, callback: impl FnOnce(&super:
sdks/rust/tests/view-client/src/module_bindings/insert_player_reducer.rs:60
↓ 16 callers
Method
is_view
Is this schema that of a view?
crates/schema/src/schema.rs:87
↓ 16 callers
Method
len
Returns the number of rows marked for deletion.
crates/datastore/src/locking_tx_datastore/delete_table.rs:132
↓ 16 callers
Method
observe
(&mut self, stats: &v8::HeapStatistics)
crates/core/src/host/v8/mod.rs:1082
↓ 16 callers
Method
procedure
Convenience method to look up a procedure, possibly by a string.
crates/schema/src/def.rs:386
↓ 16 callers
Method
read_object_error
(&self, ty: ObjectType, cause: io::Error)
crates/snapshot/src/remote.rs:247
↓ 16 callers
Function
read_via_bsatn
Read a value from a system table via BSATN.
crates/datastore/src/system_tables.rs:1877
↓ 16 callers
Method
remove
(&mut self, seq_id: SequenceId)
crates/datastore/src/locking_tx_datastore/sequence.rs:230
↓ 16 callers
Function
run_checks
(data, cargo_toml_path)
tools/crate-publish-checks.py:41
↓ 16 callers
Method
sendMessage
( roomId: number, content: string, options: { parentId?: number; scheduledFor?: string
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-180000/client/src/api.ts:173
↓ 16 callers
Method
sender
Access to ReducerContext methods
crates/bindings-cpp/include/spacetimedb/tx_context.h:70
↓ 16 callers
Method
skip
(visitor: &mut V, reader: &mut R)
crates/commitlog/src/payload/txdata.rs:216
↓ 16 callers
Method
spacetime_cmd
Runs a spacetime CLI command. Returns the command output. The command is run but not yet asserted. Uses --config-path to isolate test config from use
crates/smoketests/src/lib.rs:1074
↓ 16 callers
Method
subscribe
(key: string, listener: Listener)
crates/bindings-typescript/src/sdk/connection_manager.ts:328
↓ 16 callers
Function
unit
* This is a special helper function for conveniently creating `Product` type columns with no fields. * * @returns A new {@link ProductBuilder} i
crates/bindings-typescript/src/lib/type_builders.ts:3917
↓ 16 callers
Function
useReducer
( reducerDef: ReducerDef )
crates/bindings-typescript/src/react/useReducer.ts:6
↓ 16 callers
Function
users
()
crates/query-builder/src/lib.rs:77
↓ 15 callers
Method
Error
(string message)
sdks/csharp/src/ISpacetimeDBLogger.cs:32
↓ 15 callers
Function
MassToRadius
demo/Blackholio/client-unreal/Source/client_unreal/Public/Entity.h:43
↓ 15 callers
Function
SetConstraintRegistrationError
crates/bindings-cpp/src/internal/Module.cpp:89
↓ 15 callers
Method
ToHex
* Convert to hex string. * @return The hex string representation of the value. */
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/Types/Builtins.h:481
↓ 15 callers
Function
basic_indices
()
crates/datastore/src/locking_tx_datastore/datastore.rs:1307
↓ 15 callers
Method
begin_mut_tx
Helper that starts a new mutable transaction, and guards it using [`Self::guard_mut_tx`] with the default configuration.
crates/core/src/subscription/module_subscription_actor.rs:1911
↓ 15 callers
Method
build
()
crates/bindings-typescript/src/lib/query.ts:215
↓ 15 callers
Method
canonicalize
The rewriter assumes a canonicalized plan. And this means: 1. Literals are always on the rhs of a sargable predicate. 2. Nested ANDs and ORs are flat
crates/physical-plan/src/plan.rs:679
↓ 15 callers
Method
checked_sub
Returns `Some(t)` where `t` is the time `self - duration` if `t` can be represented as a `Timestamp`, i.e. a 64-bit signed number of microseconds befo
crates/sats/src/timestamp.rs:153
↓ 15 callers
Method
create_table
(&mut self, table_id: TableId, schema: Arc<TableSchema>)
crates/datastore/src/locking_tx_datastore/committed_state.rs:832
↓ 15 callers
Function
decode_varint
(reader: &mut impl BufReader<'a>)
crates/commitlog/src/varint.rs:37
↓ 15 callers
Function
eq_at
Equates `lhs`, assumed to be typed at `T`, to `rhs`. SAFETY: Let `lhs = &ctx.lhs.bytes[range_move(0..size_of::<T>(), ctx.curr_offset)]`. Then `lhs` m
crates/table/src/eq_to_pv.rs:223
↓ 15 callers
Method
existing_offsets
(&self)
crates/commitlog/src/repo/fs.rs:338
↓ 15 callers
Function
expect_type_name
Expect a name in the form "(scope::)*name". Panics if the input is invalid.
crates/schema/src/def/validate.rs:30
↓ 15 callers
Function
find_and_load_with_env_from
Find and load config with environment layering starting from a specific directory.
crates/cli/src/spacetime_config.rs:1022
↓ 15 callers
Function
fmt
(n: number, digits = 1)
tools/llm-sequential-upgrade/perf-benchmark/src/generate-summary.ts:17
↓ 15 callers
Method
getAlgebraicType
()
crates/bindings-typescript/src/lib/uuid.ts:332
↓ 15 callers
Method
get_tx
(&self)
crates/core/src/host/instance_env.rs:267
↓ 15 callers
Function
guard
A utility for guarding against stack overflows in the SQL parser. Usage: ``` use spacetimedb_sql_parser::parser::recursion; let mut depth = 0; assert
crates/sql-parser/src/parser/recursion.rs:20
↓ 15 callers
Method
into_iter
(self)
crates/data-structures/src/slim_slice.rs:549
↓ 15 callers
Method
len
Returns the number of entries in the map.
crates/data-structures/src/small_map.rs:131
↓ 15 callers
Method
new_identity
Creates a new identity by logging out and logging back in with a server-issued identity. This is useful for tests that need to test with multiple ide
crates/smoketests/src/lib.rs:1641
↓ 15 callers
Function
push
()
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/server/src/db/push.ts:10
↓ 15 callers
Method
relational_db
(&self)
crates/core/src/host/instance_env.rs:280
↓ 15 callers
Method
rng
Retrieve the random number generator for this reducer transaction, seeded by the timestamp of the reducer call. If you only need a single random valu
crates/bindings/src/rng.rs:49
↓ 15 callers
Method
send_message
Send a message to the client. For data-related messages, you should probably use `BroadcastQueue::send` to ensure that the client sees data messages i
crates/core/src/client/client_connection.rs:414
↓ 15 callers
Function
server_url
()
sdks/rust/tests/test-counter/src/lib.rs:19
↓ 15 callers
Method
size
* @brief Count all remaining results * * Note: This consumes the iterator, just like iterating in a for-loop. */
crates/bindings-cpp/include/spacetimedb/index_iterator.h:695
↓ 15 callers
Method
snapshot_file
(&self, tx_offset: u64)
crates/paths/src/server.rs:217
↓ 15 callers
Method
span
Track a particular `CallSpan` by adding its duration to the associated `AbiCall`'s timing information.
crates/core/src/host/wasm_common/instrumentation.rs:109
↓ 15 callers
Function
table
( name: &str, columns: ProductType, f: impl FnOnce(RawTableDefBuilder<'_>) -> RawTable
crates/engine/src/relational_db.rs:2351
↓ 15 callers
Method
take_buffer
No-op methods for size calculation
crates/bindings-cpp/include/spacetimedb/bsatn/size_calculator.h:62
↓ 15 callers
Function
to_product_value
Convert a value to a product value. Panics if the value does not serialize to a product value. It's fine to call this on system table types, because `
crates/datastore/src/system_tables.rs:1888
↓ 15 callers
Method
try_insert
* Insert a row and return Result-like type instead of throwing on error. * * This method provides the same functionality as insert() but ret
crates/bindings-cpp/include/spacetimedb/table.h:416
↓ 15 callers
Method
withWSFn
(createWSFn: WebSocketFactory)
crates/bindings-typescript/src/sdk/db_connection_builder.ts:86
↓ 15 callers
Method
with_primary_key
Adds a primary key to the table. You must also add a unique constraint on the primary key column.
crates/lib/src/db/raw_def/v9.rs:925
↓ 14 callers
Method
CompareTo
(Uuid other)
crates/bindings-csharp/BSATN.Runtime/BSATN/Uuid.cs:294
↓ 14 callers
Method
Equals
(this Player lh, Player rh)
sdks/csharp/examples~/regression-tests/client/EqualityOperations.cs:5
↓ 14 callers
Method
FromCounterV7
<summary> Generate a <see cref="Uuid"/> `v7` using a monotonic counter from 0 to 2^31-1, a Unix timestamp in milliseconds, and 4 random bytes. <examp
crates/bindings-csharp/BSATN.Runtime/BSATN/Uuid.cs:119
↓ 14 callers
Method
GetData
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/MockCoreMinimal.h:46
↓ 14 callers
Method
ToString
()
crates/bindings-csharp/BSATN.Runtime/QueryBuilder.cs:162
↓ 14 callers
Method
_getRefCount
(key: string)
crates/bindings-typescript/tests/connection_manager.test.ts:309
← previous
next →
601–700 of 27,764, ranked by callers