MCPcopy Create free account

hub / github.com/clockworklabs/SpacetimeDB / functions

Functions27,764 in github.com/clockworklabs/SpacetimeDB

↓ 2 callersFunctionaccountKey
(id: number)
templates/keynote-2/convex-app/convex/balances.ts:12
↓ 2 callersMethodacquire_write_lock
Acquire a write lock on the [HostCell] for `replica_id`. This will time out after 5s to aid debugging of https://github.com/clockworklabs/SpacetimeDB
crates/core/src/host/host_controller.rs:623
↓ 2 callersFunctionadd
(ctx: &ReducerContext, name: String)
crates/smoketests/modules/describe/src/lib.rs:9
↓ 2 callersMethodadd
( &mut self, typeid: TypeId, name: Option<&'static str>, make_ty: impl FnOnce(
crates/lib/src/lib.rs:262
↓ 2 callersFunctionaddSharedRuntimeOptions
(parser: CLIParser)
templates/keynote-2/src/opts.ts:142
↓ 2 callersMethodadd_algebraic_type
Add a type to the typespace, along with a type alias declaring its name. This method should only be used for `AlgebraicType`s not corresponding to a R
crates/lib/src/db/raw_def/v10.rs:1041
↓ 2 callersMethodadd_columns_to_table_mut_tx
( &self, tx: &mut MutTxId, table_id: TableId, column_schemas: Vec<ColumnSchema
crates/datastore/src/locking_tx_datastore/datastore.rs:315
↓ 2 callersMethodadd_columns_to_table_mut_tx
( &self, tx: &mut MutTx, table_id: TableId, column_schemas: Vec<ColumnSchema>,
crates/engine/src/relational_db.rs:1038
↓ 2 callersFunctionadd_compiled_query
( compiled: CompiledQuery, cached_queries: &SubscriptionManager, plans: &mut Vec<Arc<Plan>>, c
crates/core/src/subscription/module_subscription_actor.rs:228
↓ 2 callersMethodadd_energy
(&self, _identity: &Identity, _amount: EnergyQuanta)
crates/client-api/src/routes/database.rs:1875
↓ 2 callersMethodadd_expand_product_type_for_tests
(&mut self, name_gen: &mut usize, ty: &mut ProductType)
crates/lib/src/db/raw_def/v9.rs:703
↓ 2 callersMethodadd_expand_product_type_for_tests
(&mut self, name_gen: &mut usize, ty: &mut ProductType)
crates/lib/src/db/raw_def/v10.rs:1026
↓ 2 callersFunctionadd_for_bytestring
(len_in_bytes: usize, count: &mut usize)
crates/table/src/bflatn_to.rs:535
↓ 2 callersFunctionadd_one_import
(imports: &mut Imports, import: &AlgebraicTypeUse)
crates/codegen/src/rust.rs:2071
↓ 2 callersMethodadd_route
crates/bindings-cpp/include/spacetimedb/router.h:212
↓ 2 callersFunctionadd_subscriber
(db: Arc<RelationalDB>, sql: &str, assert: Option<AssertTxFn>)
crates/core/src/subscription/module_subscription_actor.rs:2059
↓ 2 callersMethodadd_table
(&mut self, table: TableDesc)
crates/lib/src/lib.rs:228
↓ 2 callersMethodadjust_by
(&self, delta: V8HeapSnapshot)
crates/core/src/host/v8/mod.rs:1068
↓ 2 callersFunctionadvanceIterRaw
* `ret < 0` means the iterator yielded elements but is now exhausted and has been destroyed. * `ret === 0` means the iterator was empty and has been
crates/bindings-typescript/src/server/runtime.ts:1027
↓ 2 callersMethodadvance_one_message_async
Like [`Self::advance_one_message`], but `await`s until a message is available. Called by the autogenerated `DbConnection` method of the same name.
sdks/rust/src/db_connection.rs:645
↓ 2 callersFunctionalgebraic_type_to_rose_tree
Construct a `VarLenRoseTree` from `ty`. `current_offset` should be passed as `&mut 0` upon entry to the row-type, and will be incremented as appropri
crates/table/src/row_type_visitor.rs:157
↓ 2 callersFunctionalign_index_key_components
( cols: ColOrCols<'_>, expr: &'a PhysicalExpr, )
crates/physical-plan/src/plan.rs:1283
↓ 2 callersFunctionall_rows
(datastore: &Locking, tx: &MutTxId, table_id: TableId)
crates/datastore/src/locking_tx_datastore/datastore.rs:1417
↓ 2 callersMethodalloc_for_obj_common
( &mut self, obj_len: usize, chunks: impl Copy + FnOnce(usize) -> Cs, )
crates/table/src/page.rs:675
↓ 2 callersMethodalloc_for_slice
Allocates and stores `slice` as a linked-list of granules in the var-len storage of the page. Returns a [`VarLenRef`] pointing to the head of that li
crates/table/src/page.rs:630
↓ 2 callersMethodallocate_new_page
Allocates one additional page, returning an error if the new number of pages would overflow `PageIndex::MAX`. The new page is initially empty, but is
crates/table/src/pages.rs:161
↓ 2 callersFunctionallow_creation
A hacky function to let us restrict database creation on maincloud.
crates/client-api/src/routes/database.rs:69
↓ 2 callersFunctionanalysis_instructions
(mode: &str)
tools/xtask-llm-benchmark/src/bench/analysis.rs:148
↓ 2 callersFunctionand_expr
(exprs: Vec<PhysicalExpr>)
crates/physical-plan/src/rules.rs:714
↓ 2 callersMethodany
(path: string, handler: HttpHandlerExport<any>)
crates/bindings-typescript/src/server/http_handlers.ts:304
↓ 2 callersFunctionany_i256
Generates any `i256`.
crates/sats/src/proptest.rs:123
↓ 2 callersFunctionany_u256
Generates any `u256`.
crates/sats/src/proptest.rs:118
↓ 2 callersMethodapi_call
Makes an HTTP API call to the server. Returns the response body as bytes, or an error with the HTTP status code.
crates/smoketests/src/lib.rs:1677
↓ 2 callersMethodapi_call_internal
Internal HTTP API call implementation.
crates/smoketests/src/lib.rs:1697
↓ 2 callersMethodappend
(&mut self, ts: chrono::DateTime<Utc>, record: Bytes)
crates/core/src/database_logger.rs:86
↓ 2 callersMethodappend
Append a [Row] to a tuple
crates/execution/src/lib.rs:314
↓ 2 callersMethodappend_binary_message
Append one v2 server message to the binary websocket payload currently being accumulated.
crates/client-api/src/routes/subscribe.rs:1597
↓ 2 callersMethodappend_internal
(&mut self)
crates/commitlog/src/segment.rs:354
↓ 2 callersFunctionapplySqlitePragmas
( db: BetterSqlite3Database, mode: SqliteMode, )
templates/keynote-2/src/connectors/sqlite_common.ts:32
↓ 2 callersFunctionapply_history
( datastore: &Locking, database_identity: Identity, history: impl durability::History<TxData = Txd
crates/engine/src/relational_db.rs:1646
↓ 2 callersMethodapply_pending_mutations
Apply all queued [`PendingMutation`]s.
sdks/rust/src/db_connection.rs:364
↓ 2 callersFunctionargs_error_log_message
(function_kind: &str, function_name: &str)
crates/core/src/host/module_host.rs:3521
↓ 2 callersMethodargs_for_syscall
Get slices into `self.data` for the prefix, range start and range end.
crates/bindings/src/table.rs:1069
↓ 2 callersFunctionarray_validate
A basic implementation of `ArrayVisitor::validate`.
crates/sats/src/de.rs:787
↓ 2 callersFunctionarray_visit
A basic implementation of `ArrayVisitor::visit` using the provided size hint.
crates/sats/src/de.rs:773
↓ 2 callersMethodas_collider
Assumes that `self` is a `ColliderSlotIndex` and returns it as such.
crates/table/src/pointer_map.rs:101
↓ 2 callersMethodas_history
Obtain a read-only copy of the durable state that implements [History].
crates/durability/src/imp/local.rs:195
↓ 2 callersMethodas_identifier
Retrieve the name of this type, if the scope is empty.
crates/schema/src/def.rs:1537
↓ 2 callersMethodas_option_mut
Check whether this sum type is a structural option type. A structural option type has `some(T)` as its first variant and `none` as its second. That i
crates/sats/src/sum_type.rs:104
↓ 2 callersMethodas_result
Check whether this sum type is a structural result type. A structural result type has `ok(T)` as its first variant and `err(E)` as its second. That i
crates/sats/src/sum_type.rs:135
↓ 2 callersFunctionassertRowCount
( ctx: ProcedureCtx<typeof spacetimedb.schemaType>, count: number )
modules/sdk-test-procedure-ts/src/index.ts:124
↓ 2 callersFunctionassertString
(name: string, value: unknown)
tools/llm-oneshot/apps/chat-app/typescript/gpt-5-2/postgres/chat-app-20260108-140800/server/src/validate.ts:9
↓ 2 callersFunctionassertValidPath
(path: string)
crates/bindings-typescript/src/server/http_handlers.ts:102
↓ 2 callersFunctionassert_count_view_refresh_behavior
(test: &Smoketest, view_name: &str, id: &str, value: &str, updated_value: &str)
crates/smoketests/tests/smoketests/views.rs:249
↓ 2 callersFunctionassert_delete_prompt
(output: &str, database: &str)
crates/smoketests/tests/smoketests/delete_database.rs:5
↓ 2 callersFunctionassert_expected_layout
(ty: ProductType, bsatn_length: u16, fields: &[(u16, u16, u16)])
crates/table/src/static_layout.rs:431
↓ 2 callersFunctionassert_has_rows
(test: &Smoketest, names: &[&str], context: &str)
crates/smoketests/tests/smoketests/change_host_type.rs:80
↓ 2 callersFunctionassert_identical_modules
(module_name_prefix: &str, lang_name: &str, suffix: &str)
crates/schema/tests/ensure_same_schema.rs:13
↓ 2 callersFunctionassert_key_none
Asserts that the map does not contain `key`.
crates/data-structures/src/small_map.rs:258
↓ 2 callersMethodassert_known_node
(&self, node: NodeId)
crates/runtime/src/sim/executor/mod.rs:535
↓ 2 callersFunctionassert_not_empty
Asserts that the map behaves consistently as a non-empty map.
crates/data-structures/src/small_map.rs:231
↓ 2 callersFunctionassert_pending
(f: &mut (impl Future<Output: fmt::Debug> + Unpin))
crates/core/src/client/client_connection.rs:1342
↓ 2 callersFunctionassert_received_rows
( rows_received: HashMap<ProductValue, i32>, inserts: impl IntoIterator<Item = ProductValue>,
crates/core/src/subscription/module_subscription_actor.rs:2594
↓ 2 callersFunctionassert_receiver_closed
(f: impl Future<Output = Option<OutboundMessage>>)
crates/core/src/client/client_connection.rs:1338
↓ 2 callersFunctionassert_row_count
Helper function to assert row count
modules/sdk-test-procedure-cpp/src/lib.cpp:101
↓ 2 callersFunctionassert_row_count
(ctx: &mut ProcedureContext, count: u64)
modules/sdk-test-procedure/src/lib.rs:81
↓ 2 callersFunctionassert_set_semantics_for_table
Assert the datastore implements set semantics when inserting the same row
crates/datastore/src/locking_tx_datastore/datastore.rs:2947
↓ 2 callersFunctionassert_size_align
(ty: AlgebraicType, size: usize, align: usize)
crates/sats/src/layout.rs:1087
↓ 2 callersFunctionassert_success
(output: &Output, context: &str)
crates/smoketests/tests/smoketests/cli/server.rs:23
↓ 2 callersMethodassert_system_table_schemas_match
(&self)
crates/datastore/src/locking_tx_datastore/committed_state.rs:345
↓ 2 callersFunctionassert_table_insert_only_updates
(updates: Vec<Value>, table_name: &str, first_row: Value, second_row: Value)
crates/smoketests/tests/smoketests/schedule_reducer.rs:50
↓ 2 callersFunctionassert_validation_fails
(validator: &T, token: &str)
crates/core/src/auth/token_validation.rs:427
↓ 2 callersMethodassume_present_get_mut_table
Assumes that the insert and delete tables exist for `table_id` and fetches them. # Safety The insert and delete tables must exist.
crates/datastore/src/locking_tx_datastore/tx_state.rs:272
↓ 2 callersMethodasync_flush
Asynchronously flushes any pending changes to the index file Due to Async nature, `Ok(())` does not guarantee that the changes are flushed. an `Err`
crates/commitlog/src/index/indexfile.rs:189
↓ 2 callersMethodat
(path: impl AsRef<std::path::Path>)
crates/standalone/src/control_db.rs:79
↓ 2 callersMethodaudience
Returns the audience for these credentials, from the aud claim.
crates/bindings/src/lib.rs:1658
↓ 2 callersMethodauthorize_sql
(&self, _subject: Identity, _database: Identity)
crates/client-api/src/routes/database.rs:1916
↓ 2 callersMethodbackcompat_constraints
Get backwards-compatible constraints for this table. This is closer to how `TableSchema` used to work.
crates/schema/src/schema.rs:517
↓ 2 callersMethodban_player_1_then
( &self, player_1_id: u32, ban_until_6: u32, callback: impl FnOnce(&super::Re
sdks/rust/tests/case-conversion-client/src/module_bindings/ban_player_1_reducer.rs:60
↓ 2 callersFunctionbasic_table_schema_cols
()
crates/datastore/src/locking_tx_datastore/datastore.rs:1298
↓ 2 callersFunctionbasic_table_schema_created
()
crates/datastore/src/locking_tx_datastore/datastore.rs:1376
↓ 2 callersMethodblob_reader
(&self, hash: blake3::Hash)
crates/snapshot/src/remote.rs:46
↓ 2 callersFunctionblueprint_predicate_kind_name
(kind: BlueprintPredicateKind)
crates/codegen/src/unrealcpp.rs:3108
↓ 2 callersFunctionblueprint_predicate_kinds
()
crates/codegen/src/unrealcpp.rs:3124
↓ 2 callersMethodborrow
(&self)
crates/sats/src/raw_identifier.rs:41
↓ 2 callersMethodbounds_from_bsatn
Derives bounds from `prefix`, `rstart`, and `rend`, all encoded in BSATN, for a ranged index scan on `self`.
crates/table/src/table_index/mod.rs:2037
↓ 2 callersMethodbreaks_client
(&self)
crates/schema/src/auto_migrate.rs:55
↓ 2 callersFunctionbsatn_len
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/size_calculator.h:154
↓ 2 callersFunctionbsatn_len
crates/bindings-cpp/include/spacetimedb/bsatn/size_calculator.h:154
↓ 2 callersFunctionbsatn_len
Computes the size of `val` when BSATN encoding without actually encoding.
crates/table/src/bflatn_to.rs:545
↓ 2 callersMethodbuggify_with_prob
Sample a caller-provided runtime buggify probability.
crates/runtime/src/sim/executor/mod.rs:218
↓ 2 callersMethodbuild
(self)
crates/table/src/static_layout.rs:293
↓ 2 callersFunctionbuildOpenAiBody
(req: ChatRequest)
templates/llm-chat-ts/spacetimedb/src/llm.ts:43
↓ 2 callersFunctionbuild_binaries
()
tools/ci/src/smoketest.rs:62
↓ 2 callersFunctionbuild_common_module_from_raw
Builds a [`ModuleCommon`] from a [`RawModuleDef`].
crates/core/src/host/module_common.rs:19
↓ 2 callersFunctionbuild_connection
(builder: DbConnectionBuilder<RemoteModule>)
sdks/rust/tests/connect_disconnect_client/src/test_handlers.rs:113
↓ 2 callersFunctionbuild_connection
( db_name: &str, with_builder: impl FnOnce(DbConnectionBuilder<RemoteModule>) -> DbConnectionBuilder<R
sdks/rust/tests/view-client/src/test_handlers.rs:36
↓ 2 callersFunctionbuild_context
Build context for the given mode, optionally filtering tabs for a specific language.
tools/xtask-llm-benchmark/src/context/combine.rs:33
↓ 2 callersFunctionbuild_db_ctx
Assemble and return a [`DbContextImpl`] from the provided [`DbContextImplInner`], and channels.
sdks/rust/src/db_connection.rs:1223
↓ 2 callersFunctionbuild_db_ctx_inner
Create a [`DbContextImplInner`] wrapped in `Arc<Mutex<...>>`.
sdks/rust/src/db_connection.rs:1197
← previousnext →3,701–3,800 of 27,764, ranked by callers