@symatem/query

3.1.14 • Public • Published

npm License minified size downloads semantic-release Styled with prettier Commitizen friendly

@symatem/query

Queries within SymatemJS

import { SymatemQueryMixin } from "@symatem/query";

...

const backend = await new SymatemQueryMixin(RustWasmBackend);

const {isa} = myRootSymbols;
const { A, baseType } = backend.placeholders(recordingNamespace, {A:undefined, baseType: 'baseType'});

for(const result of backend.query([
    [A, isa, B],
    [B, isa, baseType]
    ]))
    {
        console.log(result.get(A),result.get(B));
    }

API

Table of Contents

SymatemQueryMixin

Extend the backend with the query functionality.

Parameters

  • base function prototype of the backend class to extend

license

BSD-2-Clause

Readme

Keywords

none

Package Sidebar

Install

npm i @symatem/query

Weekly Downloads

17

Version

3.1.14

License

BSD-2-Clause

Unpacked Size

9.94 kB

Total Files

4

Last publish

Collaborators

  • lichtso
  • arlac77