Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a Wasm wrapper test script for pg_dumpall and pg_upgrade testing #1095

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions nix/tests/migrations/wasm_wrapper.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
create extension if not exists wrappers with schema extensions;

create foreign data wrapper wasm_wrapper
handler wasm_fdw_handler
validator wasm_fdw_validator;

create server example_server
foreign data wrapper wasm_wrapper
options (
-- change below fdw_package_* options accordingly, find examples in the README.txt in your releases
fdw_package_url 'https://github.com/supabase-community/wasm-fdw-example/releases/download/v0.1.0/wasm_fdw_example.wasm',
fdw_package_name 'my-company:example-fdw',
fdw_package_version '0.1.0',
fdw_package_checksum '67bbe7bfaebac6e8b844813121099558ffe5b9d8ac6fca8fe49c20181f50eba8',
api_url 'https://api.github.com'
);

create schema github;

create foreign table github.events (
id text,
type text,
actor jsonb,
repo jsonb,
payload jsonb,
public boolean,
created_at timestamp
)
server example_server
options (
object 'events',
rowid_column 'id'
);
Loading