mirror of
https://github.com/fluencelabs/db-connector
synced 2025-04-24 12:22:13 +00:00
fix
This commit is contained in:
parent
260b0a9066
commit
91f5905810
@ -1,4 +1,4 @@
|
||||
import {StringInvoke, API} from "../as-dependencies/crossmodule/assembly/index"
|
||||
import {API, StringInvoke} from "../as-dependencies/crossmodule/assembly/index"
|
||||
|
||||
export declare function allocate(size: usize): i32;
|
||||
export declare function deallocate(ptr: i32, size: usize): void;
|
||||
@ -10,3 +10,9 @@ export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
||||
|
||||
let invoker = getStringInvoker();
|
||||
|
||||
export function query(request: string): string {
|
||||
return invoker.invoke(request);
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
import {getStringInvoker} from "./database";
|
||||
|
||||
export function query(request: string): string {
|
||||
let stringInvoker = getStringInvoker();
|
||||
let result = stringInvoker.invoke(request);
|
||||
return result;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import {StringInvoke, API} from "../as-dependencies/crossmodule/assembly/index"
|
||||
import {API, StringInvoke} from "../as-dependencies/crossmodule/assembly/index"
|
||||
|
||||
export declare function allocate(size: usize): i32;
|
||||
export declare function deallocate(ptr: i32, size: usize): void;
|
||||
@ -10,3 +10,9 @@ export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
||||
|
||||
let invoker = getStringInvoker();
|
||||
|
||||
export function query(request: string): string {
|
||||
return invoker.invoke(request);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {StringInvoke, API} from "../as-dependencies/crossmodule/assembly/index"
|
||||
import {API, StringInvoke} from "../as-dependencies/crossmodule/assembly/index"
|
||||
|
||||
export declare function allocate(size: usize): i32;
|
||||
export declare function deallocate(ptr: i32, size: usize): void;
|
||||
@ -10,3 +10,9 @@ export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
||||
|
||||
let invoker = getStringInvoker();
|
||||
|
||||
export function query(request: string): string {
|
||||
return invoker.invoke(request);
|
||||
}
|
||||
|
@ -10,3 +10,9 @@ export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
||||
|
||||
let invoker = getStringInvoker();
|
||||
|
||||
export function query(request: string): string {
|
||||
return invoker.invoke(request);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user