mirror of
https://github.com/fluencelabs/db-connector
synced 2025-04-24 20:32:13 +00:00
add llamadb, redis and sqlite names
This commit is contained in:
parent
164fca2e43
commit
260b0a9066
12
assembly/llamadb.ts
Normal file
12
assembly/llamadb.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {StringInvoke, API} from "../as-dependencies/crossmodule/assembly/index"
|
||||
|
||||
export declare function allocate(size: usize): i32;
|
||||
export declare function deallocate(ptr: i32, size: usize): void;
|
||||
export declare function invoke(ptr: i32, size: usize): i32;
|
||||
export declare function store(ptr: usize, byte: u8): void;
|
||||
export declare function load(ptr: usize): u8;
|
||||
|
||||
export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
12
assembly/redis.ts
Normal file
12
assembly/redis.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {StringInvoke, API} from "../as-dependencies/crossmodule/assembly/index"
|
||||
|
||||
export declare function allocate(size: usize): i32;
|
||||
export declare function deallocate(ptr: i32, size: usize): void;
|
||||
export declare function invoke(ptr: i32, size: usize): i32;
|
||||
export declare function store(ptr: usize, byte: u8): void;
|
||||
export declare function load(ptr: usize): u8;
|
||||
|
||||
export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
12
assembly/sqlite.ts
Normal file
12
assembly/sqlite.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {StringInvoke, API} from "../as-dependencies/crossmodule/assembly/index"
|
||||
|
||||
export declare function allocate(size: usize): i32;
|
||||
export declare function deallocate(ptr: i32, size: usize): void;
|
||||
export declare function invoke(ptr: i32, size: usize): i32;
|
||||
export declare function store(ptr: usize, byte: u8): void;
|
||||
export declare function load(ptr: usize): u8;
|
||||
|
||||
export function getStringInvoker(): StringInvoke {
|
||||
let api = new API(invoke, allocate, deallocate, store, load);
|
||||
return new StringInvoke(api);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user