/SymatemQuery

queries within SymatemJS

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

npm License minified size downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

@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