MCPcopy Create free account

hub / github.com/clockworklabs/SpacetimeDB / functions

Functions27,764 in github.com/clockworklabs/SpacetimeDB

↓ 17 callersMethodas_singleton
Returns `head` if that is the only element.
crates/primitives/src/col_list.rs:139
↓ 17 callersFunctioncasing_for_lang
(lang: Lang)
tools/xtask-llm-benchmark/src/eval/sql_fmt.rs:13
↓ 17 callersMethodclone
(&self)
sdks/rust/src/subscription.rs:460
↓ 17 callersFunctionconnect
(db_name: &str, test_counter: &std::sync::Arc<TestCounter>)
sdks/rust/tests/test-client/src/test_handlers.rs:389
↓ 17 callersMethoddatabase_identity
Returns the database's identity.
crates/core/src/host/instance_env.rs:244
↓ 17 callersFunctiondeserialize
(input: StdTokenStream)
crates/bindings-macro/src/lib.rs:269
↓ 17 callersFunctionensure_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 callersMethodentries
()
crates/bindings-typescript/src/sdk/client_cache.ts:67
↓ 17 callersFunctiongetUserName
(identity: Identity)
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/spacetime/chat-app-20260102-170500/client/src/App.tsx:216
↓ 17 callersMethodid
(&self)
tools/xtask-llm-benchmark/src/eval/scorers.rs:24
↓ 17 callersFunctioniter_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 callersMethodlen
(&self)
crates/commitlog/src/tests/partial.rs:191
↓ 17 callersMethodmodule_code
Sets the module code to compile and publish.
crates/smoketests/src/lib.rs:781
↓ 17 callersFunctionmy_table
(col_type: AlgebraicType)
crates/engine/src/relational_db.rs:2347
↓ 17 callersMethodonError
* 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 callersMethodreborrow
(&mut self)
crates/sats/src/bsatn/de.rs:19
↓ 17 callersMethodscan_rows
Returns an iterator over all the rows of `self`, yielded as [`RowRef`]s.
crates/table/src/table.rs:1535
↓ 17 callersMethodsendToClient
(message: ServerMessage)
crates/bindings-typescript/src/sdk/websocket_test_adapter.ts:79
↓ 17 callersFunctionsql
( State(worker_ctx): State<S>, Path(name_or_identity): Path<SqlParams>, Query(params): Query<SqlQu
crates/client-api/src/routes/database.rs:759
↓ 17 callersMethodtest
(ReducerContext ctx, TestAlias arg, TestB arg2, TestC arg3, TestF arg4)
modules/module-test-cs/Lib.cs:307
↓ 17 callersMethodto_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 callersMethoduse_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 callersMethodwrite_colored
(&mut self, text: &str, color: Option<Color>, bold: bool)
crates/schema/src/auto_migrate/termcolor_formatter.rs:85
↓ 16 callersMethodFilter
(Column value)
sdks/csharp/src/Table.cs:153
↓ 16 callersMethodGetAlgebraicType
( SpacetimeDB.BSATN.ITypeRegistrar registrar )
crates/bindings-csharp/Codegen.Tests/fixtures/server/snapshots/Type#EmptyClass.verified.cs:32
↓ 16 callersMethodMakeUniqueConstraint
(ushort colIndex)
crates/bindings-csharp/Runtime/Internal/ITable.cs:229
↓ 16 callersMethodRegisterTableDefaultValue
(string table, ushort colId, byte[] value)
crates/bindings-csharp/Runtime/Internal/Module.cs:429
↓ 16 callersMethodSetLength
(long value)
sdks/csharp/src/ListStream.cs:82
↓ 16 callersMethodWarn
(string message)
sdks/csharp/src/ISpacetimeDBLogger.cs:31
↓ 16 callersMethodadd_subscription
Adds a single subscription for a client.
crates/core/src/subscription/module_subscription_manager.rs:953
↓ 16 callersMethodas_mut
(&mut self)
crates/commitlog/src/index/indexfile.rs:308
↓ 16 callersMethodcall_reducer_binary
(&self, reducer: &str, args: &sats::ProductValue)
crates/testing/src/modules.rs:96
↓ 16 callersMethodcaller
(&self)
crates/lib/src/identity.rs:102
↓ 16 callersMethodcmp
(&self, other: &Self)
crates/primitives/src/col_list.rs:321
↓ 16 callersMethodcommit_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 callersMethodcontains
Returns whether `ptr`, belonging to a table in [`CommittedState`], is recorded as deleted.
crates/datastore/src/locking_tx_datastore/delete_table.rs:43
↓ 16 callersMethodderef_slice
Get a byte slice of wasm memory given a pointer and a length.
crates/core/src/host/wasmtime/mod.rs:317
↓ 16 callersFunctiondeserialize
(de: D)
crates/client-api/src/util/serde.rs:13
↓ 16 callersMethodencode
( &self, rlb_pool: &impl RowListBuilderSource<F>, )
crates/core/src/host/module_host.rs:154
↓ 16 callersFunctioneq_bsatn_de
Deserializes from `de` an `rhs: T` and then proceeds to `lhs == rhs`.
crates/sats/src/bsatn/eq.rs:118
↓ 16 callersMethodhash
(&self, state: &mut H)
crates/table/src/table.rs:2067
↓ 16 callersMethodinsert_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 callersMethodis_view
Is this schema that of a view?
crates/schema/src/schema.rs:87
↓ 16 callersMethodlen
Returns the number of rows marked for deletion.
crates/datastore/src/locking_tx_datastore/delete_table.rs:132
↓ 16 callersMethodobserve
(&mut self, stats: &v8::HeapStatistics)
crates/core/src/host/v8/mod.rs:1082
↓ 16 callersMethodprocedure
Convenience method to look up a procedure, possibly by a string.
crates/schema/src/def.rs:386
↓ 16 callersMethodread_object_error
(&self, ty: ObjectType, cause: io::Error)
crates/snapshot/src/remote.rs:247
↓ 16 callersFunctionread_via_bsatn
Read a value from a system table via BSATN.
crates/datastore/src/system_tables.rs:1877
↓ 16 callersMethodremove
(&mut self, seq_id: SequenceId)
crates/datastore/src/locking_tx_datastore/sequence.rs:230
↓ 16 callersFunctionrun_checks
(data, cargo_toml_path)
tools/crate-publish-checks.py:41
↓ 16 callersMethodsendMessage
( 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 callersMethodsender
Access to ReducerContext methods
crates/bindings-cpp/include/spacetimedb/tx_context.h:70
↓ 16 callersMethodskip
(visitor: &mut V, reader: &mut R)
crates/commitlog/src/payload/txdata.rs:216
↓ 16 callersMethodspacetime_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 callersMethodsubscribe
(key: string, listener: Listener)
crates/bindings-typescript/src/sdk/connection_manager.ts:328
↓ 16 callersFunctionunit
* 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 callersFunctionuseReducer
( reducerDef: ReducerDef )
crates/bindings-typescript/src/react/useReducer.ts:6
↓ 16 callersFunctionusers
()
crates/query-builder/src/lib.rs:77
↓ 15 callersMethodError
(string message)
sdks/csharp/src/ISpacetimeDBLogger.cs:32
↓ 15 callersFunctionMassToRadius
demo/Blackholio/client-unreal/Source/client_unreal/Public/Entity.h:43
↓ 15 callersFunctionSetConstraintRegistrationError
crates/bindings-cpp/src/internal/Module.cpp:89
↓ 15 callersMethodToHex
* Convert to hex string. * @return The hex string representation of the value. */
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/Types/Builtins.h:481
↓ 15 callersFunctionbasic_indices
()
crates/datastore/src/locking_tx_datastore/datastore.rs:1307
↓ 15 callersMethodbegin_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 callersMethodbuild
()
crates/bindings-typescript/src/lib/query.ts:215
↓ 15 callersMethodcanonicalize
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 callersMethodchecked_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 callersMethodcreate_table
(&mut self, table_id: TableId, schema: Arc<TableSchema>)
crates/datastore/src/locking_tx_datastore/committed_state.rs:832
↓ 15 callersFunctiondecode_varint
(reader: &mut impl BufReader<'a>)
crates/commitlog/src/varint.rs:37
↓ 15 callersFunctioneq_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 callersMethodexisting_offsets
(&self)
crates/commitlog/src/repo/fs.rs:338
↓ 15 callersFunctionexpect_type_name
Expect a name in the form "(scope::)*name". Panics if the input is invalid.
crates/schema/src/def/validate.rs:30
↓ 15 callersFunctionfind_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 callersFunctionfmt
(n: number, digits = 1)
tools/llm-sequential-upgrade/perf-benchmark/src/generate-summary.ts:17
↓ 15 callersMethodgetAlgebraicType
()
crates/bindings-typescript/src/lib/uuid.ts:332
↓ 15 callersMethodget_tx
(&self)
crates/core/src/host/instance_env.rs:267
↓ 15 callersFunctionguard
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 callersMethodinto_iter
(self)
crates/data-structures/src/slim_slice.rs:549
↓ 15 callersMethodlen
Returns the number of entries in the map.
crates/data-structures/src/small_map.rs:131
↓ 15 callersMethodnew_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 callersFunctionpush
()
tools/llm-oneshot/apps/chat-app/typescript/opus-4-5/postgres/chat-app-20260104-120000/server/src/db/push.ts:10
↓ 15 callersMethodrelational_db
(&self)
crates/core/src/host/instance_env.rs:280
↓ 15 callersMethodrng
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 callersMethodsend_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 callersFunctionserver_url
()
sdks/rust/tests/test-counter/src/lib.rs:19
↓ 15 callersMethodsize
* @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 callersMethodsnapshot_file
(&self, tx_offset: u64)
crates/paths/src/server.rs:217
↓ 15 callersMethodspan
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 callersFunctiontable
( name: &str, columns: ProductType, f: impl FnOnce(RawTableDefBuilder<'_>) -> RawTable
crates/engine/src/relational_db.rs:2351
↓ 15 callersMethodtake_buffer
No-op methods for size calculation
crates/bindings-cpp/include/spacetimedb/bsatn/size_calculator.h:62
↓ 15 callersFunctionto_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 callersMethodtry_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 callersMethodwithWSFn
(createWSFn: WebSocketFactory)
crates/bindings-typescript/src/sdk/db_connection_builder.ts:86
↓ 15 callersMethodwith_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 callersMethodCompareTo
(Uuid other)
crates/bindings-csharp/BSATN.Runtime/BSATN/Uuid.cs:294
↓ 14 callersMethodEquals
(this Player lh, Player rh)
sdks/csharp/examples~/regression-tests/client/EqualityOperations.cs:5
↓ 14 callersMethodFromCounterV7
<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 callersMethodGetData
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/MockCoreMinimal.h:46
↓ 14 callersMethodToString
()
crates/bindings-csharp/BSATN.Runtime/QueryBuilder.cs:162
↓ 14 callersMethod_getRefCount
(key: string)
crates/bindings-typescript/tests/connection_manager.test.ts:309
← previousnext →601–700 of 27,764, ranked by callers