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§

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 raw u8 log level.

Functions§

  • Unschedule a reducer using the same id generated as when it was scheduled.
  • Log at level a text message occuring in filename:line_number with target being the module path at the log! invocation site.
  • Creates an index with the name index_name and type index_type, on a product of the given columns ids in col_ids, identifying columns in the table identified by table_id.
  • Deletes all rows in the table identified by table_id where the column identified by col_id matches value.
  • Deletes those rows, in the table identified by table_id, that match any row in relation.
  • 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-encoded ProductValue matching the table’s ProductType row-schema.
  • Returns an iterator for each row, as bytes, of a table identified by table_id. The rows can be put through an optional filter, which is encoded in the embedded language defined by spacetimedb_lib::filter::Expr.
  • Finds all rows in the table identified by table_id, where the row has a column, identified by col_id, with data matching the byte string val.
  • Schedule a reducer to be called asynchronously at time.