Crate spacetimedb_bindings_sys
source ·Expand description
Defines sys calls to interact with SpacetimeDB. This forms an ABI of sorts that modules written in Rust can use.
Re-exports§
pub use raw::Buffer;
pub use raw::BufferIter;
Modules§
- Provides a raw set of sys calls which abstractions can be built atop of.
Structs§
- Error values used in the safe bindings API.
Enums§
- A log level that can be used in
console_log
. The variants are convertible into a rawu8
log level.
Functions§
- Unschedule a reducer using the same
id
generated as when it was scheduled. - Log at
level
atext
message occuring infilename:line_number
withtarget
being the module path at thelog!
invocation site. - Creates an index with the name
index_name
and typeindex_type
, on a product of the given columns ids incol_ids
, identifying columns in the table identified bytable_id
. - Deletes all rows in the table identified by
table_id
where the column identified bycol_id
matchesvalue
. - Deletes those rows, in the table identified by
table_id
, that match any row inrelation
. - Queries and returns the
table_id
associated with the given (table)name
. - Inserts a row into the table identified by
table_id
, where the row is a BSATN-encodedProductValue
matching the table’sProductType
row-schema. - Returns an iterator for each row, as bytes, of a table identified by
table_id
. The rows can be put through an optionalfilter
, which is encoded in the embedded language defined byspacetimedb_lib::filter::Expr
. - Finds all rows in the table identified by
table_id
, where the row has a column, identified bycol_id
, with data matching the byte stringval
. - Schedule a reducer to be called asynchronously at
time
.