diff --git a/wasm/wasm_executor--1.0.sql b/wasm/wasm_executor--1.0.sql index ebaccd18edff30050a2e7eab394fd2fac9e59d58..f5fc82220c99dc3e17f4a29ea12956c2aa8cd3e1 100644 --- a/wasm/wasm_executor--1.0.sql +++ b/wasm/wasm_executor--1.0.sql @@ -12,7 +12,8 @@ CREATE TABLE wasm.instances( ); CREATE TABLE wasm.exported_functions( - instanceid bigint, + instanceid bigint, + namespace text, funcname text, inputs text, outputs text @@ -113,7 +114,7 @@ BEGIN -- Insert the wasm information to gloable table INSERT INTO wasm.instances SELECT id, wasm_file FROM wasm_get_instances() WHERE id = current_instance_id; - INSERT INTO wasm.exported_functions SELECT current_instance_id, funcname, inputs, outputs FROM wasm_get_exported_functions(current_instance_id); + INSERT INTO wasm.exported_functions SELECT current_instance_id, namespace, funcname, inputs, outputs FROM wasm_get_exported_functions(current_instance_id); -- Generate functions for each exported functions from the WebAssembly instance. FOR