File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+ );
You can’t perform that action at this time.
0 commit comments