Skip to content

Commit c39bd5f

Browse files
committed
create wasm wrapper pause restore test
1 parent 47d598f commit c39bd5f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
create extension if not exists wrappers with schema extensions;
2+
3+
create foreign data wrapper wasm_wrapper
4+
handler wasm_fdw_handler
5+
validator wasm_fdw_validator;
6+
7+
create server example_server
8+
foreign data wrapper wasm_wrapper
9+
options (
10+
-- change below fdw_package_* options accordingly, find examples in the README.txt in your releases
11+
fdw_package_url 'https://github.com/supabase-community/wasm-fdw-example/releases/download/v0.1.0/wasm_fdw_example.wasm',
12+
fdw_package_name 'my-company:example-fdw',
13+
fdw_package_version '0.1.0',
14+
fdw_package_checksum '67bbe7bfaebac6e8b844813121099558ffe5b9d8ac6fca8fe49c20181f50eba8',
15+
api_url 'https://api.github.com'
16+
);
17+
18+
create schema github;
19+
20+
create foreign table github.events (
21+
id text,
22+
type text,
23+
actor jsonb,
24+
repo jsonb,
25+
payload jsonb,
26+
public boolean,
27+
created_at timestamp
28+
)
29+
server example_server
30+
options (
31+
object 'events',
32+
rowid_column 'id'
33+
);

0 commit comments

Comments
 (0)