From 3d7e65a71ced636a1f4efc35f4a26c98aef69381 Mon Sep 17 00:00:00 2001 From: Siyuan Huang <73871299+kysshsy@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:52:33 +0800 Subject: [PATCH] chore: update wrapper (#195) * chore: update wrapper * chore: fix clippy --- Cargo.lock | 10 +++++----- Cargo.toml | 2 +- src/bin/pgrx_embed.rs | 1 + src/fdw/trigger.rs | 2 +- src/lib.rs | 1 + 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fa491d99..4b0a23cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -5551,8 +5551,8 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "supabase-wrappers" -version = "0.1.19" -source = "git+https://github.com/paradedb/wrappers.git?rev=8aef4a6#8aef4a67e2e1e7d6741d1583fb3f95e3f82ec73c" +version = "0.1.20" +source = "git+https://github.com/paradedb/wrappers.git?rev=31e5a1f#31e5a1fc1a349c9becdcae22c3ec3ca5bf4a9364" dependencies = [ "pgrx", "supabase-wrappers-macros", @@ -5563,8 +5563,8 @@ dependencies = [ [[package]] name = "supabase-wrappers-macros" -version = "0.1.16" -source = "git+https://github.com/paradedb/wrappers.git?rev=8aef4a6#8aef4a67e2e1e7d6741d1583fb3f95e3f82ec73c" +version = "0.1.17" +source = "git+https://github.com/paradedb/wrappers.git?rev=31e5a1f#31e5a1fc1a349c9becdcae22c3ec3ca5bf4a9364" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 9bd91daf..3d93c31e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ serde_json = "1.0.128" signal-hook = "0.3.17" sqlparser = "0.52.0" strum = { version = "0.26.3", features = ["derive"] } -supabase-wrappers = { git = "https://github.com/paradedb/wrappers.git", default-features = false, rev = "8aef4a6" } +supabase-wrappers = { git = "https://github.com/paradedb/wrappers.git", default-features = false, rev = "31e5a1f" } thiserror = "1.0.63" uuid = "1.10.0" diff --git a/src/bin/pgrx_embed.rs b/src/bin/pgrx_embed.rs index 5f5c4d85..dadb029e 100644 --- a/src/bin/pgrx_embed.rs +++ b/src/bin/pgrx_embed.rs @@ -1 +1,2 @@ +#![allow(unexpected_cfgs)] ::pgrx::pgrx_embed!(); diff --git a/src/fdw/trigger.rs b/src/fdw/trigger.rs index 7ac2f334..d3cef3de 100644 --- a/src/fdw/trigger.rs +++ b/src/fdw/trigger.rs @@ -183,7 +183,7 @@ unsafe fn auto_create_schema_impl(fcinfo: pg_sys::FunctionCallInfo) -> Result<() // Alter Postgres table to match DuckDB schema let preserve_casing = table_options .get("preserve_casing") - .map_or(false, |s| s.eq_ignore_ascii_case("true")); + .is_some_and(|s| s.eq_ignore_ascii_case("true")); let alter_table_statement = construct_alter_table_statement(schema_name, table_name, schema_rows, preserve_casing); Spi::run(alter_table_statement.as_str())?; diff --git a/src/lib.rs b/src/lib.rs index af9cc566..289923e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,7 @@ // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#![allow(unexpected_cfgs)] mod api; #[cfg(debug_assertions)]