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
↓ 22 callers
Method
sql
Executes a SQL query against the database.
crates/smoketests/src/lib.rs:1569
↓ 22 callers
Method
to_micros_since_unix_epoch
Get the number of microseconds `self` is offset from [`Self::UNIX_EPOCH`]. A positive value means a time after the Unix epoch, and a negative value m
crates/sats/src/timestamp.rs:38
↓ 22 callers
Method
update
(localPlayer?: PlayerController)
demo/Blackholio/client-ts/src/ui/StatusHud.ts:13
↓ 21 callers
Method
Any
(string path, Handler handler)
crates/bindings-csharp/Runtime/Router.cs:50
↓ 21 callers
Method
ToString
()
crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#Player.verified.cs:22
↓ 21 callers
Function
build_generate_config_schema
Build the CommandSchema for generate command configuration. This schema is used to validate and merge values from both the config file and CLI argume
crates/cli/src/subcommands/generate.rs:36
↓ 21 callers
Function
cli
()
crates/cli/src/subcommands/publish.rs:191
↓ 21 callers
Method
clone
(&self)
sdks/rust/src/db_connection.rs:110
↓ 21 callers
Method
get_mut
Returns the value for `key`, mutably, if any.
crates/data-structures/src/small_map.rs:184
↓ 21 callers
Method
i128
crates/bindings-cpp/include/spacetimedb/bsatn/types.h:210
↓ 21 callers
Method
is_empty
Returns whether there are no read sets recorded.
crates/datastore/src/locking_tx_datastore/mut_tx.rs:104
↓ 21 callers
Function
iter_reducers
Iterate over all the [`ReducerDef`]s defined by the module, in alphabetical order by name. Skipping the `init` reducer and internal [`FunctionVisibii
crates/codegen/src/util.rs:106
↓ 21 callers
Function
iter_table_names_and_types
Iterate over the names of all the tables and views defined by the module, in alphabetical order. Returns `(name, accessor_name, product_type_ref)` fo
crates/codegen/src/util.rs:175
↓ 21 callers
Method
kind
(&self, module: &ModuleInfo)
crates/core/src/host/scheduler.rs:308
↓ 21 callers
Function
requireEditor
(ctx: any, canvasId: bigint)
tools/llm-oneshot/apps/paint-app/typescript/opus-4-5/spacetime/paint-app-20260112-154500/backend/spacetimedb/src/index.ts:1741
↓ 21 callers
Method
required
Mark this key as required in the config file. If a config file is provided but this key is missing, an error will be returned.
crates/cli/src/spacetime_config.rs:638
↓ 21 callers
Function
resolve
Parse, type check, and resolve RLS rules
crates/expr/src/rls.rs:554
↓ 21 callers
Method
table_id_from_name_mut
(&self, tx: &MutTx, table_name: &str)
crates/engine/src/relational_db.rs:1263
↓ 21 callers
Method
with_auto_inc_primary_key
Adds a primary key to the table, with corresponding unique constraint and sequence definitions. You will also need to call [`Self::with_index`] to cre
crates/lib/src/db/raw_def/v9.rs:932
↓ 21 callers
Method
with_column_sequence
Adds a [RawSequenceDefV9] on the supplied `column`.
crates/lib/src/db/raw_def/v9.rs:962
↓ 20 callers
Function
Array
()
crates/bindings-typescript/src/lib/autogen/types.ts:25
↓ 20 callers
Method
DoClear
()
crates/bindings-csharp/Runtime/Internal/ITable.cs:205
↓ 20 callers
Method
DoCount
()
crates/bindings-csharp/Runtime/Internal/ITable.cs:161
↓ 20 callers
Method
DoDelete
(Bounds bounds)
crates/bindings-csharp/Runtime/Internal/IIndex.cs:49
↓ 20 callers
Method
DoInsert
(T row)
crates/bindings-csharp/Runtime/Internal/ITable.cs:169
↓ 20 callers
Method
DoIter
()
crates/bindings-csharp/Runtime/Internal/ITable.cs:167
↓ 20 callers
Method
add_query
(self, build: impl Fn(M::QueryBuilder) -> Q)
sdks/rust/src/subscription.rs:220
↓ 20 callers
Method
builder
()
crates/lib/src/lib.rs:152
↓ 20 callers
Function
deserialize
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/reader.h:262
↓ 20 callers
Method
drain
Returns an iterator over the errors in the stream, consuming the stream.
crates/data-structures/src/error_stream.rs:164
↓ 20 callers
Method
eq
(self, rhs: IxCol<R, V>)
crates/query-builder/src/join.rs:42
↓ 20 callers
Function
exec
(config: Config, args: &ArgMatches)
crates/cli/src/subcommands/sql.rs:181
↓ 20 callers
Method
iter_by_col_eq
( &'a self, table_id: TableId, cols: impl Into<ColList>, value: &'r AlgebraicV
crates/datastore/src/locking_tx_datastore/tx.rs:117
↓ 20 callers
Method
last
Returns the last of the list, if any.
crates/primitives/src/col_list.rs:153
↓ 20 callers
Method
rightSemijoin
( right: TableRef<OtherTable>, on: ( left: IndexedRowExpr<TableDef>, right: IndexedRowExpr
crates/bindings-typescript/src/lib/query.ts:181
↓ 20 callers
Method
serialize
(writer: BinaryWriter, value: Type)
crates/bindings-typescript/src/lib/type_builders.ts:216
↓ 20 callers
Function
st_schema
(name: &str, id: TableId)
crates/datastore/src/system_tables.rs:804
↓ 20 callers
Method
truncate
Truncates the index file starting from the entry with a key greater than or equal to the given key. If successful, `key` will no longer be in the ind
crates/commitlog/src/index/indexfile.rs:212
↓ 20 callers
Method
with_access
Sets the access rights for the table and return it.
crates/lib/src/db/raw_def/v9.rs:908
↓ 19 callers
Method
Count
sdks/unreal/tests/TestClient/Source/TestClient/Private/ModuleBindings/Tables/PkI8Table.g.cpp:39
↓ 19 callers
Method
FromHexString
<summary> Create an Identity from a hex string. </summary> <param name="hex"></param> <returns></returns>
crates/bindings-csharp/BSATN.Runtime/Builtins.cs:286
↓ 19 callers
Method
ToString
()
sdks/csharp/src/MultiDictionary.cs:320
↓ 19 callers
Method
add
( &mut self, _: std::any::TypeId, _: Option<&'static str>, _: impl FnOnce(&mut
crates/bindings/src/rt.rs:526
↓ 19 callers
Method
any
Is there any subplan where `f` returns true?
crates/physical-plan/src/plan.rs:349
↓ 19 callers
Function
blackBox
(_x: any)
modules/benchmarks-ts/src/load.ts:19
↓ 19 callers
Method
collect
* @brief Collect all remaining results into a vector * * Convenient method to materialize all matching rows from the iterator * into a
crates/bindings-cpp/include/spacetimedb/index_iterator.h:499
↓ 19 callers
Function
commonEsbuildTweaks
()
crates/bindings-typescript/tsup.config.ts:4
↓ 19 callers
Method
eq
(self, other: Self)
crates/lib/src/lib.rs:74
↓ 19 callers
Function
generate_array_of
Generates an array value given an element generator `gen_elem`.
crates/sats/src/proptest.rs:178
↓ 19 callers
Function
hash
Returns a hash index algorithm for the columns `cols`.
crates/lib/src/db/raw_def/v9.rs:337
↓ 19 callers
Method
is_success
Returns true if the status code indicates success (2xx).
crates/smoketests/src/lib.rs:492
↓ 19 callers
Method
merge
(&mut self, value: YesValue)
crates/cli/src/subcommands/publish.rs:61
↓ 19 callers
Method
next
(&mut self)
crates/client-api-messages/src/websocket/common.rs:174
↓ 19 callers
Function
ponder_auto_migrate
Construct an automatic migration plan, or reject with reasons why automatic migration can't be performed.
crates/schema/src/auto_migrate.rs:475
↓ 19 callers
Method
read
(path: &MetadataTomlPath)
crates/core/src/config.rs:57
↓ 19 callers
Method
resolve
A variant of [`Self::try_resolve()`] which maps to a 404 (Not Found) response if `self` is a [`NameOrIdentity::Name`] for which no corresponding [`Ide
crates/client-api/src/util.rs:110
↓ 19 callers
Method
retain
* Retains a connection, incrementing its reference count. * Creates the connection on first call; returns existing connection on subsequent calls.
crates/bindings-typescript/src/sdk/connection_manager.ts:273
↓ 19 callers
Function
run
Run the `SQL` string using the `auth` credentials If a `ModuleHost` is provided, the SQL query is executed via the module host, meaning the module’s
crates/core/src/sql/execute.rs:52
↓ 19 callers
Method
save
(&self)
crates/cli/src/config.rs:724
↓ 19 callers
Method
snapshot_dir_path
Get the path to the directory which would contain the snapshot of transaction `tx_offset`. The directory may not exist if no snapshot has been taken
crates/snapshot/src/lib.rs:916
↓ 19 callers
Method
tables
The tables of the module definition.
crates/schema/src/def.rs:184
↓ 19 callers
Method
take
Taking the record of call times gives a copy of the current values and resets the values to zero. WasmInstanceEnv::finish_reducer (and other future p
crates/core/src/host/wasm_common/instrumentation.rs:123
↓ 19 callers
Method
typespace
The `Typespace` used by the module. `AlgebraicTypeRef`s in the table, reducer, and type alias declarations refer to this typespace. The typespace mu
crates/schema/src/def.rs:305
↓ 19 callers
Function
validate
Validate a `RawModuleDefV9` and convert it into a `ModuleDef`, or return a stream of errors if the definition is invalid.
crates/schema/src/def/validate/v9.rs:20
↓ 19 callers
Method
zero
* Zero identity (0x0000000000000000000000000000000000000000000000000000000000000000)
crates/bindings-typescript/src/lib/identity.ts:76
↓ 18 callers
Method
BlackBox
(IEnumerable<T> input)
modules/benchmarks-cs/lib.cs:7
↓ 18 callers
Method
WithTx
(Func<HandlerTxContextBase, TResult> body)
crates/bindings-csharp/Runtime/HandlerContext.cs:64
↓ 18 callers
Function
build_publish_schema
Build the CommandSchema for publish command
crates/cli/src/subcommands/publish.rs:85
↓ 18 callers
Method
checked_add
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:145
↓ 18 callers
Method
duration_since
Returns the [`Duration`] delta between `self` and `earlier`, if `earlier` predates `self`. Returns `None` if `earlier` is strictly greater than `self
crates/sats/src/timestamp.rs:118
↓ 18 callers
Method
expandBuffer
(additionalCapacity: number)
crates/bindings-typescript/src/lib/binary_writer.ts:54
↓ 18 callers
Function
generate
(module: &ModuleDef, lang: &dyn Lang, options: &CodegenOptions)
crates/codegen/src/lib.rs:32
↓ 18 callers
Method
get
Returns whether `idx` is set or not.
crates/table/src/fixed_bit_set.rs:195
↓ 18 callers
Method
get_host_url
(&self)
crates/cli/src/config.rs:53
↓ 18 callers
Function
id
(connection_id: u128)
crates/core/src/subscription/module_subscription_manager.rs:2236
↓ 18 callers
Function
identity_from_u8
Create an [Identity] from a [u8]
crates/core/src/sql/execute.rs:450
↓ 18 callers
Method
on_connect
Register a callback to run when the connection is successfully established. The connection is established after the initial connection message is rec
sdks/rust/src/db_connection.rs:1144
↓ 18 callers
Method
on_connect_error
Register a callback to run when a connection attempt fails asynchronously. This callback is invoked only before the initial connection message is rec
sdks/rust/src/db_connection.rs:1162
↓ 18 callers
Method
parse_use
Use the `TypespaceForGenerateBuilder` to validate an `AlgebraicTypeUse`. Does not actually add anything to the `TypespaceForGenerate`.
crates/schema/src/type_for_generate.rs:398
↓ 18 callers
Method
product
Returns a view of this row type as a product type.
crates/sats/src/layout.rs:286
↓ 18 callers
Method
push
Push an error onto the stream.
crates/data-structures/src/error_stream.rs:169
↓ 18 callers
Function
put_result
(result: &mut Option<ResultRecorder>, res: Result<(), anyhow::Error>)
sdks/rust/tests/view-client/src/test_handlers.rs:140
↓ 18 callers
Method
random
()
crates/bindings-typescript/src/server/runtime.ts:272
↓ 18 callers
Method
reset
Reset the `ReducerCtx` to be used for a new transaction
crates/bindings-typescript/src/server/runtime.ts:244
↓ 18 callers
Function
sanitize_db_name
(raw: &str)
tools/xtask-llm-benchmark/src/bench/utils.rs:5
↓ 18 callers
Method
set_len
SAFETY: `new_len <= self.capacity()` and `new_len` <= number of initialized elements.
crates/primitives/src/col_list.rs:582
↓ 18 callers
Method
source
( mut self, language: ModuleLanguage, project_dir_name: impl Into<String>, mod
crates/smoketests/src/lib.rs:584
↓ 18 callers
Function
str
()
templates/keynote-2/src/opts.ts:140
↓ 18 callers
Function
table_name
Convert a singular lowercase table name to the appropriate convention for each language. - C#: PascalCase singular (e.g., "user" -> "User") - TypeScri
tools/xtask-llm-benchmark/src/eval/sql_fmt.rs:25
↓ 18 callers
Function
update
( datastore: &'a Locking, tx: &'a mut MutTxId, table_id: TableId, index_id: In
crates/datastore/src/locking_tx_datastore/datastore.rs:1444
↓ 18 callers
Method
with_database_name
Set the name or identity of the remote database to connect to.
sdks/rust/src/db_connection.rs:1067
↓ 18 callers
Method
with_tx
Acquire a mutable transaction and execute `body` with read-write access to the database. If `body` panics, the transaction will be rolled back, and t
crates/bindings/src/lib.rs:1373
↓ 18 callers
Method
with_uri
Set the URI of the SpacetimeDB host which is running the remote database. The URI must have either no scheme or one of the schemes `http`, `https`, `
sdks/rust/src/db_connection.rs:1060
↓ 17 callers
Method
Filter
(Func<TCols, TPredicate> predicate)
crates/bindings-csharp/BSATN.Runtime/QueryBuilder.cs:218
↓ 17 callers
Method
Read
(System.IO.BinaryReader reader)
crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestDefaultFieldValues.verified.cs:85
↓ 17 callers
Method
Read
<summary> Convert the passed byte array to a value of type T, optionally reversing it before performing the conversion. If the input is not reversed,
crates/bindings-csharp/BSATN.Runtime/Builtins.cs:55
↓ 17 callers
Function
Sum
()
crates/bindings-typescript/src/lib/autogen/types.ts:19
↓ 17 callers
Method
VolatileNonatomicScheduleImmediate
(string name, MemoryStream args)
crates/bindings-csharp/Runtime/Internal/IReducer.cs:28
↓ 17 callers
Method
Write
(System.IO.BinaryWriter writer, TestDefaultFieldValues value)
crates/bindings-csharp/Codegen.Tests/fixtures/diag/snapshots/Module#TestDefaultFieldValues.verified.cs:92
↓ 17 callers
Method
add
Request that the remote module invoke the reducer `add` to run as soon as possible. This method returns immediately, and errors only if we are unable
templates/basic-rs/src/module_bindings/add_reducer.rs:34
← previous
next →
501–600 of 27,764, ranked by callers