Skip to main content

Crate spacetimedsl

Crate spacetimedsl 

Source

Re-exports§

pub use delete::DeletionResult;
pub use delete::DeletionResultEntry;
pub use delete::OnDeleteStrategy;
pub use error::ReferenceIntegrityViolationError;
pub use error::SpacetimeDSLError;
pub use itertools;

Modules§

as_anonymous_view_context
as_reducer_context
as_view_context
delete
error
get_auth
get_connection_id
get_immutable_database
get_module_identity
get_mutable_database
get_random
get_random_number_generator
get_sender
get_timestamp
prelude

Structs§

DSL
DSLMethodHooks
ReadOnlyDSL

Enums§

ContextType

Traits§

Context
DSLContext
ReadContext
ReadOnlyDSLContext
Wrapper
WriteContext

Functions§

dsl
read_only_dsl

Attribute Macros§

dsl
Add #[dsl] to your structs with #[table] to interact in a more ergonomic way than SpacetimeDB allows you by default.
hook
Add #[hook] to your functions to add the trait implementation line required for SpacetimeDSL hooks to work.

Derive Macros§

SpacetimeDSL
Provides helper attributes for #[dsl] because proc_macro_attribute’s currently don’t support them.