Skip to content

QueryResolver should contain (wrap) queries #39

@MarcGuiselin

Description

@MarcGuiselin

Wasvy's dynamic systems make use of a single ParamSet to retrieve queries. Since a ParamSet is accessed by index, the QueryResolver struct exists in Wasvy to facilitate WasmQuery (and other system params in the future) accessing the correct index that corresponds with their query.

Currently when running a system, both a reference to the ParamSet and a QueryResolver are passed separately to the WasmHost (see dynamic_system in system.rs).

Ideally the QueryResolver completely wraps and holds the mutable reference to the queries, so accessing them can only be done through its own interface.

Blocked by: #38

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions