From c4b1f61658b43f3cecabefb2e03346299453b42b Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Wed, 15 Jul 2026 07:28:32 +0200 Subject: [PATCH] Remove Arrow support MobilityDB removed the Arrow C Data Interface export (meos_arrow.h, meos_*_to_arrow / _from_arrow / _arrow_roundtrip). Drop the generated .NET FFI for it: the meos_{temporal,set,span,spanset,tbox,stbox}_to_arrow / _from_arrow / _arrow_roundtrip P/Invoke declarations and their exposed wrappers leave MEOSExternalFunctions.cs and MEOSExposedFunctions.cs. --- MEOS.NET/Internal/MEOSExposedFunctions.cs | 54 ------------------- MEOS.NET/Internal/MEOSExternalFunctions.cs | 60 ---------------------- 2 files changed, 114 deletions(-) diff --git a/MEOS.NET/Internal/MEOSExposedFunctions.cs b/MEOS.NET/Internal/MEOSExposedFunctions.cs index e699846..8277f98 100644 --- a/MEOS.NET/Internal/MEOSExposedFunctions.cs +++ b/MEOS.NET/Internal/MEOSExposedFunctions.cs @@ -11273,60 +11273,6 @@ public static IntPtr jsonbfunc_jsonbset_jsonb(IntPtr s, IntPtr jb, IntPtr func, public static IntPtr jsonbfunc_jsonbset_text(IntPtr s, IntPtr txt, IntPtr func) => SafeExecution(() => MEOSExternalFunctions.jsonbfunc_jsonbset_text(s, txt, func)); - public static bool meos_temporal_to_arrow(IntPtr temp, IntPtr out_schema, IntPtr out_array) - => SafeExecution(() => MEOSExternalFunctions.meos_temporal_to_arrow(temp, out_schema, out_array)); - - public static IntPtr meos_temporal_from_arrow(IntPtr schema, IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_temporal_from_arrow(schema, array)); - - public static IntPtr meos_temporal_arrow_roundtrip(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.meos_temporal_arrow_roundtrip(temp)); - - public static bool meos_set_to_arrow(IntPtr s, IntPtr out_schema, IntPtr out_array) - => SafeExecution(() => MEOSExternalFunctions.meos_set_to_arrow(s, out_schema, out_array)); - - public static IntPtr meos_set_from_arrow(IntPtr schema, IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_set_from_arrow(schema, array)); - - public static IntPtr meos_set_arrow_roundtrip(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.meos_set_arrow_roundtrip(s)); - - public static bool meos_span_to_arrow(IntPtr s, IntPtr out_schema, IntPtr out_array) - => SafeExecution(() => MEOSExternalFunctions.meos_span_to_arrow(s, out_schema, out_array)); - - public static IntPtr meos_span_from_arrow(IntPtr schema, IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_span_from_arrow(schema, array)); - - public static IntPtr meos_span_arrow_roundtrip(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.meos_span_arrow_roundtrip(s)); - - public static bool meos_spanset_to_arrow(IntPtr ss, IntPtr out_schema, IntPtr out_array) - => SafeExecution(() => MEOSExternalFunctions.meos_spanset_to_arrow(ss, out_schema, out_array)); - - public static IntPtr meos_spanset_from_arrow(IntPtr schema, IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_spanset_from_arrow(schema, array)); - - public static IntPtr meos_spanset_arrow_roundtrip(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.meos_spanset_arrow_roundtrip(ss)); - - public static bool meos_tbox_to_arrow(IntPtr box, IntPtr out_schema, IntPtr out_array) - => SafeExecution(() => MEOSExternalFunctions.meos_tbox_to_arrow(box, out_schema, out_array)); - - public static IntPtr meos_tbox_from_arrow(IntPtr schema, IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_tbox_from_arrow(schema, array)); - - public static IntPtr meos_tbox_arrow_roundtrip(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.meos_tbox_arrow_roundtrip(box)); - - public static bool meos_stbox_to_arrow(IntPtr box, IntPtr out_schema, IntPtr out_array) - => SafeExecution(() => MEOSExternalFunctions.meos_stbox_to_arrow(box, out_schema, out_array)); - - public static IntPtr meos_stbox_from_arrow(IntPtr schema, IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_stbox_from_arrow(schema, array)); - - public static IntPtr meos_stbox_arrow_roundtrip(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.meos_stbox_arrow_roundtrip(box)); - public static IntPtr h3index_from_wkb(IntPtr wkb, IntPtr size) => SafeExecution(() => MEOSExternalFunctions.h3index_from_wkb(wkb, size)); diff --git a/MEOS.NET/Internal/MEOSExternalFunctions.cs b/MEOS.NET/Internal/MEOSExternalFunctions.cs index fe52940..8cda874 100644 --- a/MEOS.NET/Internal/MEOSExternalFunctions.cs +++ b/MEOS.NET/Internal/MEOSExternalFunctions.cs @@ -10344,66 +10344,6 @@ private partial class MEOSExternalFunctions [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] public static partial IntPtr jsonbfunc_jsonbset_text(IntPtr s, IntPtr txt, IntPtr func); - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_temporal_to_arrow(IntPtr temp, IntPtr out_schema, IntPtr out_array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_temporal_from_arrow(IntPtr schema, IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_temporal_arrow_roundtrip(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_set_to_arrow(IntPtr s, IntPtr out_schema, IntPtr out_array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_set_from_arrow(IntPtr schema, IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_set_arrow_roundtrip(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_span_to_arrow(IntPtr s, IntPtr out_schema, IntPtr out_array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_span_from_arrow(IntPtr schema, IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_span_arrow_roundtrip(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_spanset_to_arrow(IntPtr ss, IntPtr out_schema, IntPtr out_array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_spanset_from_arrow(IntPtr schema, IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_spanset_arrow_roundtrip(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_tbox_to_arrow(IntPtr box, IntPtr out_schema, IntPtr out_array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_tbox_from_arrow(IntPtr schema, IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_tbox_arrow_roundtrip(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_stbox_to_arrow(IntPtr box, IntPtr out_schema, IntPtr out_array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_stbox_from_arrow(IntPtr schema, IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_stbox_arrow_roundtrip(IntPtr box); - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] public static partial IntPtr h3index_from_wkb(IntPtr wkb, IntPtr size);