Skip to content

Commit

Permalink
change function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
rebasedming authored and kysshsy committed Jan 12, 2025
1 parent bce44e1 commit 974c33d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion supabase-wrappers/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ pub(super) unsafe fn create_fdw_instance_from_table_id<
false => HashMap::new(),
};

let wrapper = W::new(&fserver_opts, &user_mapping_opts);
let wrapper = W::new(fserver_opts, user_mapping_opts);
wrapper.report_unwrap()
}
6 changes: 3 additions & 3 deletions supabase-wrappers/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ pub trait ForeignDataWrapper<E: Into<ErrorReport>> {
/// info or API url in an variable, but don't do heavy works like database
/// connection or API call.
fn new(
server_options: &HashMap<String, String>,
user_mapping_options: &HashMap<String, String>,
server_options: HashMap<String, String>,
user_mapping_options: HashMap<String, String>,
) -> Result<Self, E>
where
Self: Sized;
Expand Down Expand Up @@ -692,7 +692,7 @@ pub trait ForeignDataWrapper<E: Into<ErrorReport>> {
columns: &[Column],
sorts: &[Sort],
limit: &Option<Limit>,
options: &HashMap<String, String>,
options: HashMap<String, String>,
) -> Result<(), E>;

/// Called when fetch one row from the foreign source
Expand Down
2 changes: 1 addition & 1 deletion supabase-wrappers/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn check_options_contain(opt_list: &[Option<String>], tgt: &str) -> Result<(
}

// convert options definition to hashmap
pub(super) unsafe fn options_to_hashmap(
pub unsafe fn options_to_hashmap(
options: *mut pg_sys::List,
) -> Result<HashMap<String, String>, OptionsError> {
let mut ret = HashMap::new();
Expand Down
2 changes: 1 addition & 1 deletion supabase-wrappers/src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<E: Into<ErrorReport>, W: ForeignDataWrapper<E>> FdwState<E, W> {
&self.tgts,
&self.sorts,
&self.limit,
&self.opts,
self.opts.clone(),
)
}

Expand Down

0 comments on commit 974c33d

Please sign in to comment.