Module spacetimedb_bindings_sys::raw
source · Expand description
Provides a raw set of sys calls which abstractions can be built atop of.
Structs§
- A handle into a buffer of bytes in the host environment.
- Represents table iterators, with a similar API to
Buffer
.
Enums§
- What strategy does the database index use?
Constants§
- The debug log level. See
_console_log
. - The error log level. See
_console_log
. - The info log level. See
_console_log
. - The panic log level. See
_console_log
. - The trace log level. See
_console_log
. - The warn log level. See
_console_log
.
Functions§
- Creates a buffer of size
data_len
in the host environment. - Consumes the
buffer
, moving its contents to the slice(dst, dst_len)
. - Returns the length (number of bytes) of buffer
bufh
without transferring ownership of the data into the function. - Unschedule a reducer using the same
id
generated as when it was scheduled. - Log at
level
amessage
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 incol_ids
in the table identified bytable_id
. - Deletes all rows in the table identified by
table_id
where the column identified bycol_id
matches the byte string, in WASM memory, pointed to at byvalue
. - Deletes those rows, in the table identified by
table_id
, that match any row inrelation
. - Queries the
table_id
associated with the given (table)name
wherename
points to a UTF-8 slice in WASM memory ofname_len
bytes. - Inserts a row into the table identified by
table_id
, where the row is read from the byte slicerow
in WASM memory, lastingrow_len
bytes. - Finds all rows in the table identified by
table_id
, where the row has a column, identified bycol_id
, with data matching the byte string, in WASM memory, pointed to at byval
. - Drops the entire registered iterator with the index given by
iter_key
. The iterator is effectively de-registered. - Advances the registered iterator with the index given by
iter_key
. - Start iteration on each row, as bytes, of a table identified by
table_id
. - Like
_iter_start
, start iteration on each row, as bytes, of a table identified bytable_id
. - Schedules a reducer to be called asynchronously at
time
. - End a timing span.
- Begin a timing span.