1515// specific language governing permissions and limitations
1616// under the License.
1717
18- #include <Rinternals.h>
1918#include <stdint.h>
2019
20+ #include <Rinternals.h>
21+
2122#include <R_ext/Parse.h>
2223
2324#include "rust/api.h"
@@ -83,6 +84,13 @@ SEXP savvy_InternalContext_data_frame_from_array_stream__impl(
8384 return handle_result (res );
8485}
8586
87+ SEXP savvy_InternalContext_data_frame_from_table_provider__impl (
88+ SEXP self__ , SEXP c_arg__provider_xptr ) {
89+ SEXP res = savvy_InternalContext_data_frame_from_table_provider__ffi (
90+ self__ , c_arg__provider_xptr );
91+ return handle_result (res );
92+ }
93+
8694SEXP savvy_InternalContext_deregister_table__impl (SEXP self__ ,
8795 SEXP c_arg__table_ref ) {
8896 SEXP res =
@@ -100,6 +108,19 @@ SEXP savvy_InternalContext_read_parquet__impl(SEXP self__, SEXP c_arg__paths) {
100108 return handle_result (res );
101109}
102110
111+ SEXP savvy_InternalContext_register_scalar_udf__impl (
112+ SEXP self__ , SEXP c_arg__scalar_udf_xptr ) {
113+ SEXP res = savvy_InternalContext_register_scalar_udf__ffi (
114+ self__ , c_arg__scalar_udf_xptr );
115+ return handle_result (res );
116+ }
117+
118+ SEXP savvy_InternalContext_scalar_udf_xptr__impl (SEXP self__ ,
119+ SEXP c_arg__name ) {
120+ SEXP res = savvy_InternalContext_scalar_udf_xptr__ffi (self__ , c_arg__name );
121+ return handle_result (res );
122+ }
123+
103124SEXP savvy_InternalContext_sql__impl (SEXP self__ , SEXP c_arg__query ) {
104125 SEXP res = savvy_InternalContext_sql__ffi (self__ , c_arg__query );
105126 return handle_result (res );
@@ -149,9 +170,10 @@ SEXP savvy_InternalDataFrame_to_arrow_schema__impl(SEXP self__,
149170 return handle_result (res );
150171}
151172
152- SEXP savvy_InternalDataFrame_to_arrow_stream__impl (SEXP self__ ,
153- SEXP c_arg__out ) {
154- SEXP res = savvy_InternalDataFrame_to_arrow_stream__ffi (self__ , c_arg__out );
173+ SEXP savvy_InternalDataFrame_to_arrow_stream__impl (
174+ SEXP self__ , SEXP c_arg__out , SEXP c_arg__requested_schema_xptr ) {
175+ SEXP res = savvy_InternalDataFrame_to_arrow_stream__ffi (
176+ self__ , c_arg__out , c_arg__requested_schema_xptr );
155177 return handle_result (res );
156178}
157179
@@ -166,6 +188,11 @@ SEXP savvy_InternalDataFrame_to_parquet__impl(
166188 return handle_result (res );
167189}
168190
191+ SEXP savvy_InternalDataFrame_to_provider__impl (SEXP self__ ) {
192+ SEXP res = savvy_InternalDataFrame_to_provider__ffi (self__ );
193+ return handle_result (res );
194+ }
195+
169196SEXP savvy_InternalDataFrame_to_view__impl (SEXP self__ , SEXP c_arg__ctx ,
170197 SEXP c_arg__table_ref ,
171198 SEXP c_arg__overwrite ) {
@@ -183,12 +210,18 @@ static const R_CallMethodDef CallEntries[] = {
183210 (DL_FUNC )& savvy_sedonadb_adbc_init_func__impl , 0 },
184211 {"savvy_InternalContext_data_frame_from_array_stream__impl" ,
185212 (DL_FUNC )& savvy_InternalContext_data_frame_from_array_stream__impl , 3 },
213+ {"savvy_InternalContext_data_frame_from_table_provider__impl" ,
214+ (DL_FUNC )& savvy_InternalContext_data_frame_from_table_provider__impl , 2 },
186215 {"savvy_InternalContext_deregister_table__impl" ,
187216 (DL_FUNC )& savvy_InternalContext_deregister_table__impl , 2 },
188217 {"savvy_InternalContext_new__impl" ,
189218 (DL_FUNC )& savvy_InternalContext_new__impl , 0 },
190219 {"savvy_InternalContext_read_parquet__impl" ,
191220 (DL_FUNC )& savvy_InternalContext_read_parquet__impl , 2 },
221+ {"savvy_InternalContext_register_scalar_udf__impl" ,
222+ (DL_FUNC )& savvy_InternalContext_register_scalar_udf__impl , 2 },
223+ {"savvy_InternalContext_scalar_udf_xptr__impl" ,
224+ (DL_FUNC )& savvy_InternalContext_scalar_udf_xptr__impl , 2 },
192225 {"savvy_InternalContext_sql__impl" ,
193226 (DL_FUNC )& savvy_InternalContext_sql__impl , 2 },
194227 {"savvy_InternalContext_view__impl" ,
@@ -208,9 +241,11 @@ static const R_CallMethodDef CallEntries[] = {
208241 {"savvy_InternalDataFrame_to_arrow_schema__impl" ,
209242 (DL_FUNC )& savvy_InternalDataFrame_to_arrow_schema__impl , 2 },
210243 {"savvy_InternalDataFrame_to_arrow_stream__impl" ,
211- (DL_FUNC )& savvy_InternalDataFrame_to_arrow_stream__impl , 2 },
244+ (DL_FUNC )& savvy_InternalDataFrame_to_arrow_stream__impl , 3 },
212245 {"savvy_InternalDataFrame_to_parquet__impl" ,
213246 (DL_FUNC )& savvy_InternalDataFrame_to_parquet__impl , 8 },
247+ {"savvy_InternalDataFrame_to_provider__impl" ,
248+ (DL_FUNC )& savvy_InternalDataFrame_to_provider__impl , 1 },
214249 {"savvy_InternalDataFrame_to_view__impl" ,
215250 (DL_FUNC )& savvy_InternalDataFrame_to_view__impl , 4 },
216251 {NULL , NULL , 0 }};
0 commit comments