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
Method
from_env
Build from environment variables `LLM_BENCHMARK_UPLOAD_URL` and `LLM_BENCHMARK_API_KEY`. Returns `None` if `LLM_BENCHMARK_UPLOAD_URL` is not set.
tools/xtask-llm-benchmark/src/api/client.rs:34
Method
from_event_and_update
(event: &ModuleEvent, update: SwitchedDbUpdate)
crates/core/src/client/messages.rs:490
Method
from_event_inserts
For event tables: construct a `TableAppliedDiff` with just inserts, without touching the client cache. Each insert will fire `on_insert` callbacks.
sdks/rust/src/client_cache.rs:119
Method
from_extension
(ext: &str)
crates/standalone/src/subcommands/extract_schema.rs:38
Method
from_frame
Converts a V8 [`StackFrame`] into one independent of `'scope`.
crates/core/src/host/v8/error.rs:448
Method
from_heap
Constructs a list in heap form from `vec`.
crates/primitives/src/col_list.rs:133
Method
from_hex
(hex: impl AsRef<[u8]>)
crates/lib/src/identity.rs:245
Method
from_hex
Parse a hexadecimal string into a `ConnectionId`.
crates/lib/src/connection_id.rs:111
Method
from_hex
(hex: impl AsRef<[u8]>)
crates/sats/src/hash.rs:48
Method
from_hours
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/time_duration.h:33
Method
from_hours
crates/bindings-cpp/include/spacetimedb/bsatn/time_duration.h:33
Method
from_i128
Constructs an `AlgebraicValue` from an `i128` according to the given `AlgebraicType`. Returns `None` if the type is not a supported integer type.
crates/sats/src/algebraic_value.rs:313
Method
from_i64
Factory method for clarity (high, low parameter order)
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/types.h:208
Method
from_i64
Factory method for clarity (high, low parameter order)
crates/bindings-cpp/include/spacetimedb/bsatn/types.h:215
Method
from_index
(&self, i: usize)
crates/schema/src/type_for_generate.rs:662
Method
from_inline
Constructs a list from a `u64` bitset where the highest bit is unset. Panics in debug mode if the highest bit is set.
crates/primitives/src/col_list.rs:121
Method
from_is_unique
Creates a new `Constraints` instance that is [`Self::unique`] if `is_unique` and [`Self::indexed`] otherwise.
crates/primitives/src/attr.rs:157
Method
from_iter
(iter: T)
crates/client-api-messages/src/websocket/v1.rs:556
Method
from_iter
(iter: T)
crates/data-structures/src/slim_slice.rs:571
Method
from_iter
(iter: T)
crates/core/src/host/module_host.rs:86
Method
from_iter
(iter: T)
crates/core/src/subscription/module_subscription_manager.rs:375
Method
from_iter
(iter: T)
crates/lib/src/http.rs:113
Method
from_iter
(iter: I)
crates/client-api/src/util/flat_csv.rs:96
Method
from_iter
(iter: T)
crates/table/src/pointer_map.rs:339
Method
from_iter
(iter: T)
crates/sats/src/typespace.rs:222
Method
from_iter
(iter: T)
crates/sats/src/product_value.rs:29
Method
from_iter
(iter: T)
crates/sats/src/product_type.rs:247
Method
from_iter
(iter: T)
crates/schema/src/auto_migrate.rs:849
Method
from_iter
(iter: I)
crates/primitives/src/col_list.rs:69
Method
from_jwt_payload
crates/bindings-cpp/include/spacetimedb/auth_ctx.h:146
Method
from_jwt_payload
Creates an [`AuthCtx`] using the json claims from a [JWT]. This can be used to write unit tests. [JWT]: https://en.wikipedia.org/wiki/JSON_Web_Token
crates/bindings/src/lib.rs:1586
Method
from_le_byte_array
Create an `ConnectionId` from a little-endian byte array. If you are parsing an `ConnectionId` from a string, you probably want [`Self::from_be_byte_
crates/lib/src/connection_id.rs:74
Method
from_len_ptr
(len: usize, ptr: *mut T)
crates/data-structures/src/slim_slice.rs:258
Method
from_memory_usage
(bytes_stored: u64, storage_period: Duration)
crates/client-api-messages/src/energy.rs:42
Method
from_message
(msg: WsMessage)
crates/client-api/src/routes/subscribe.rs:1853
Method
from_metrics
(metrics: &ExecutionMetrics)
crates/client-api-messages/src/http.rs:25
Method
from_micros
Factory methods
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/time_duration.h:29
Method
from_micros
Factory methods
crates/bindings-cpp/include/spacetimedb/bsatn/time_duration.h:29
Method
from_micros
Construct a [`TimeDuration`] which is `micros` microseconds.
crates/sats/src/time_duration.rs:34
Method
from_micros_since_epoch
Factory methods
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/timestamp.h:29
Method
from_micros_since_epoch
Factory methods
crates/bindings-cpp/include/spacetimedb/bsatn/timestamp.h:29
Method
from_micros_since_unix_epoch
Construct a [`Timestamp`] which is `micros` microseconds offset from [`Self::UNIX_EPOCH`]. A positive value means a time after the Unix epoch, and a
crates/sats/src/timestamp.rs:46
Method
from_millis
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/time_duration.h:30
Method
from_millis
crates/bindings-cpp/include/spacetimedb/bsatn/time_duration.h:30
Method
from_millis_since_epoch
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/timestamp.h:33
Method
from_millis_since_epoch
crates/bindings-cpp/include/spacetimedb/bsatn/timestamp.h:33
Method
from_minutes
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/time_duration.h:32
Method
from_minutes
crates/bindings-cpp/include/spacetimedb/bsatn/time_duration.h:32
Method
from_module_def
N.B. This implementation gives all children ID 0 (the auto-inc sentinel value.)
crates/schema/src/schema.rs:921
Method
from_mut
(tx_data: Arc<TxData>, tx_metrics_mut: TxMetrics)
crates/core/src/subscription/module_subscription_actor.rs:1997
Method
from_name
Create a new `ScopedTypeName` with an empty scope.
crates/schema/src/def.rs:1524
Method
from_offsets
Returns an [`AlignedVarLenOffsets`] using `offsets`.
crates/table/src/var_len.rs:423
Method
from_one_with_capacity
Returns a singleton array with `val` as its only element. Optionally allocates the backing `Vec<_>`s with `capacity`.
crates/sats/src/algebraic_value/ser.rs:335
Method
from_path
(path: P)
crates/bench/src/bin/summarize.rs:242
Method
from_path_imp
(path: &Path)
crates/bench/src/bin/summarize.rs:253
Method
from_paths
(paths: &SpacetimePaths)
crates/paths/src/lib.rs:200
Method
from_physical_plan
(plan: &PhysicalPlan)
crates/subscription/src/lib.rs:303
Method
from_pinned_cores
Construct a [`JobCores`] which runs one Tokio runtime on each of the `cores`, and pins each database to a particular runtime/core. If `cores` is empt
crates/core/src/util/jobs.rs:87
Method
from_product
Create a `TableDef` from a product type and table name. NOTE: If the [ProductType.name] is `None` then it auto-generate a name like `col_{col_pos}`
crates/lib/src/db/raw_def/v8.rs:444
Method
from_product_ref
(prod: &ProductValue)
crates/sats/src/algebraic_value/de.rs:27
Method
from_product_type
Convert a product type to a list of column definitions.
crates/lib/src/db/raw_def/v8.rs:184
Method
from_product_type
(ty: ProductType)
crates/schema/src/schema.rs:225
Method
from_random_bytes_v4
* Create a UUID v4 from explicit random bytes. * * This method assumes the bytes are already sufficiently random. * It only sets the a
crates/bindings-cpp/include/spacetimedb/bsatn/uuid.h:96
Method
from_random_bytes_v4
Create a UUID `v4` from explicit random bytes. This method assumes the bytes are already sufficiently random, it will only set the appropriate bits f
crates/sats/src/uuid.rs:82
Method
from_range_bounds
(b: impl RangeBounds<u64>)
crates/commitlog/src/stream/common.rs:87
Method
from_ref
Converts `&T` to `&SerializeWrapper<T>`.
crates/sats/src/lib.rs:67
Method
from_ref
Converts `&T` to `&Wrapper<T>`.
crates/sats/src/satn.rs:55
Method
from_ref
Converts `&AlgebraicValue` to `&ValueDeserializer`.
crates/sats/src/algebraic_value/de.rs:22
Method
from_request
(req: Request, state: &S)
crates/client-api/src/util.rs:28
Method
from_request_parts
Extract credentials from the headers or else query string of a request.
crates/client-api/src/auth.rs:66
Method
from_request_parts
(parts: &mut http::request::Parts, _state: &S)
crates/client-api/src/util/websocket.rs:84
Method
from_requirement
Create a code error from a code.
crates/core/src/host/v8/error.rs:246
Method
from_result
(res: &Result<ProcedureCallResult, ProcedureCallError>, request_id: RequestId)
crates/core/src/client/messages.rs:785
Method
from_return_data
(data: ViewReturnData)
crates/core/src/host/wasm_common/module_host_actor.rs:308
Method
from_root_dir
(dir: &RootDir)
crates/paths/src/lib.rs:257
Method
from_row_ref
Serializes the columns `cols` in `row_ref` to a [`BytesKey<N>`]. It's assumed that `row_ref` projected to `cols` will fit into `N` bytes when seriali
crates/table/src/table_index/bytes_key.rs:247
Method
from_row_ref
(key_type: &AlgebraicType, index: &TypedIndex, cols: &ColList, row_ref: RowRef<'_>)
crates/table/src/table_index/mod.rs:622
Method
from_seconds
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/time_duration.h:31
Method
from_seconds
crates/bindings-cpp/include/spacetimedb/bsatn/time_duration.h:31
Method
from_seconds_since_epoch
sdks/unreal/src/SpacetimeDbSdk/Source/SpacetimeDbSdk/Public/BSATN/Core/timestamp.h:37
Method
from_seconds_since_epoch
crates/bindings-cpp/include/spacetimedb/bsatn/timestamp.h:37
Method
from_sender
(sender: Identity)
crates/execution/src/lib.rs:25
Method
from_shared
(space: SpaceOnDevice, storage: SharedLock<Storage>)
crates/commitlog/src/repo/mem/segment.rs:74
Method
from_signed_token
(token: String)
crates/client-api/src/auth.rs:42
Method
from_slice
(s: &[u8])
crates/standalone/src/control_db.rs:645
Method
from_slice
(v: &[u8])
crates/core/src/host/wasmtime/mod.rs:311
Method
from_slice_mut
(v: &mut [u8])
crates/core/src/host/wasmtime/mod.rs:307
Method
from_slice_unchecked
Converts a `&[T]` to the limited version without length checking. SAFETY: `slice.len() <= u32::MAX` must hold.
crates/data-structures/src/slim_slice.rs:891
Method
from_sql
(ty: &Type, raw: &[u8])
crates/sqltest/src/pg.rs:146
Method
from_sql_null
(_ty: &Type)
crates/sqltest/src/pg.rs:209
Method
from_stats
(stats: &v8::HeapStatistics)
crates/core/src/host/v8/mod.rs:994
Method
from_str
(s: &str)
tools/xtask-llm-benchmark/src/eval/lang.rs:29
Method
from_str
(s: &str)
tools/xtask-llm-benchmark/src/bin/llm_benchmark.rs:34
Method
from_str
(s: &str)
crates/client-api-messages/src/name.rs:266
Method
from_str
(s: &str)
crates/datastore/src/system_tables.rs:1682
Method
from_str
(s: &str)
crates/lib/src/identity.rs:273
Method
from_str
(s: &str)
crates/cli/src/subcommands/init.rs:73
Method
from_str
(s: &str)
crates/commitlog/src/varchar.rs:18
Method
from_str_truncate
Construct [`Self`] from a string slice, or allocate a new string containing the first `N` bytes of the slice if it is longer than `N` bytes. In case
crates/commitlog/src/varchar.rs:28
Method
from_str_unchecked
(s: &'a str)
crates/data-structures/src/slim_slice.rs:1231
← previous
next →
20,401–20,500 of 27,764, ranked by callers