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

feat(wasm): add Calendly Wasm FDW #364

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

burmecia
Copy link
Member

@burmecia burmecia commented Nov 7, 2024

What kind of change does this PR introduce?

This PR is to add a new Calendly Wasm foreign data wrapper.

What is the current behavior?

N/A

What is the new behavior?

N/A

Additional context

N/A

@burmecia burmecia added the wasm label Nov 7, 2024
@burmecia burmecia requested review from olirice and imor November 8, 2024 04:17
fdw_package_url 'https://github.com/supabase/wrappers/releases/download/wasm_calendly_fdw_v0.1.0/calendly_fdw.wasm',
fdw_package_name 'supabase:calendly-fdw',
fdw_package_version '0.1.0',
fdw_package_checksum 'tbd',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checksum missing

fdw_package_url 'https://github.com/supabase/wrappers/releases/download/wasm_calendly_fdw_v0.1.0/calendly_fdw.wasm',
fdw_package_name 'supabase:calendly-fdw',
fdw_package_version '0.1.0',
fdw_package_checksum 'tbd',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checksum missing

Comment on lines +24 to +33
static mut INSTANCE: *mut CalendlyFdw = std::ptr::null_mut::<CalendlyFdw>();
static FDW_NAME: &str = "CalendlyFdw";

impl CalendlyFdw {
fn init() {
let instance = Self::default();
unsafe {
INSTANCE = Box::leak(Box::new(instance));
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using LazyLock<T> instead of unsafe initialization for the INSTANCE static.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants