@montferret/ferret-wasm
Version:
Ferret compiler and runtime ported to WASM
14 lines (13 loc) • 458 B
TypeScript
import { Go } from './wasm_exec';
import { Program } from './program';
import { RuntimeFunction, Version } from './compiler';
export declare class Engine {
private readonly __go;
private readonly __compiler;
private readonly __version;
constructor(go: Go);
version(): Readonly<Version>;
register(name: string, fn: RuntimeFunction): void;
compile(query: string): Program;
exec<T>(query: string, params?: object): Promise<T>;
}