@@ -176,7 +176,7 @@ internal unsafe partial struct TableCreatOptions
176176 internal unsafe partial struct TableOptions
177177 {
178178 [ NativeTypeName ( "int64_t" ) ]
179- public long version ;
179+ public IntPtr version ;
180180
181181 [ NativeTypeName ( "struct Map *" ) ]
182182 public Map * storage_options ;
@@ -258,7 +258,7 @@ internal unsafe partial struct VacuumOptions
258258 public byte dry_run ;
259259
260260 [ NativeTypeName ( "uint64_t" ) ]
261- public ulong retention_hours ;
261+ public UIntPtr retention_hours ;
262262
263263 [ NativeTypeName ( "bool" ) ]
264264 public byte enforce_retention_duration ;
@@ -303,31 +303,31 @@ internal unsafe partial struct Dictionary
303303 internal unsafe partial struct TableMetadata
304304 {
305305 [ NativeTypeName ( "const char *" ) ]
306- public sbyte * id ;
306+ public byte * id ;
307307
308308 [ NativeTypeName ( "const char *" ) ]
309- public sbyte * name ;
309+ public byte * name ;
310310
311311 [ NativeTypeName ( "const char *" ) ]
312- public sbyte * description ;
312+ public byte * description ;
313313
314314 [ NativeTypeName ( "const char *" ) ]
315- public sbyte * format_provider ;
315+ public byte * format_provider ;
316316
317317 [ NativeTypeName ( "struct Dictionary" ) ]
318318 public Dictionary format_options ;
319319
320320 [ NativeTypeName ( "const char *" ) ]
321- public sbyte * schema_string ;
321+ public byte * schema_string ;
322322
323323 [ NativeTypeName ( "char **" ) ]
324- public sbyte * * partition_columns ;
324+ public byte * * partition_columns ;
325325
326326 [ NativeTypeName ( "uintptr_t" ) ]
327327 public UIntPtr partition_columns_count ;
328328
329329 [ NativeTypeName ( "int64_t" ) ]
330- public long created_time ;
330+ public IntPtr created_time ;
331331
332332 [ NativeTypeName ( "struct Dictionary" ) ]
333333 public Dictionary configuration ;
@@ -424,13 +424,13 @@ internal static unsafe partial class Methods
424424 public static extern void history ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "uintptr_t" ) ] UIntPtr limit , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "GenericErrorCallback" ) ] IntPtr callback ) ;
425425
426426 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
427- public static extern void table_update_incremental ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] long max_version , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
427+ public static extern void table_update_incremental ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] IntPtr max_version , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
428428
429429 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
430- public static extern void table_load_version ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] long version , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
430+ public static extern void table_load_version ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] IntPtr version , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
431431
432432 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
433- public static extern void table_load_with_datetime ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] long ts_milliseconds , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
433+ public static extern void table_load_with_datetime ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] IntPtr ts_milliseconds , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
434434
435435 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
436436 public static extern void table_merge ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * delta_table , [ NativeTypeName ( "struct ByteArrayRef * _Nonnull" ) ] ByteArrayRef * query , [ NativeTypeName ( "void * _Nonnull" ) ] void * stream , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "GenericErrorCallback" ) ] IntPtr callback ) ;
@@ -440,7 +440,7 @@ internal static unsafe partial class Methods
440440 public static extern ProtocolResponse table_protocol_versions ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table ) ;
441441
442442 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
443- public static extern void table_restore ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] long version_or_timestamp , [ NativeTypeName ( "bool" ) ] byte is_timestamp , [ NativeTypeName ( "bool" ) ] byte ignore_missing_files , [ NativeTypeName ( "bool" ) ] byte protocol_downgrade_allowed , [ NativeTypeName ( "struct Map *" ) ] Map * custom_metadata , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
443+ public static extern void table_restore ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "int64_t" ) ] IntPtr version_or_timestamp , [ NativeTypeName ( "bool" ) ] byte is_timestamp , [ NativeTypeName ( "bool" ) ] byte ignore_missing_files , [ NativeTypeName ( "bool" ) ] byte protocol_downgrade_allowed , [ NativeTypeName ( "struct Map *" ) ] Map * custom_metadata , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "TableEmptyCallback" ) ] IntPtr callback ) ;
444444
445445 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
446446 public static extern void table_update ( [ NativeTypeName ( "struct Runtime * _Nonnull" ) ] Runtime * runtime , [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table , [ NativeTypeName ( "struct ByteArrayRef * _Nonnull" ) ] ByteArrayRef * query , [ NativeTypeName ( "const struct CancellationToken *" ) ] CancellationToken * cancellation_token , [ NativeTypeName ( "GenericErrorCallback" ) ] IntPtr callback ) ;
@@ -469,7 +469,7 @@ internal static unsafe partial class Methods
469469
470470 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
471471 [ return : NativeTypeName ( "int64_t" ) ]
472- public static extern long table_version ( [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table_handle ) ;
472+ public static extern IntPtr table_version ( [ NativeTypeName ( "struct RawDeltaTable * _Nonnull" ) ] RawDeltaTable * table_handle ) ;
473473
474474 [ DllImport ( "delta_rs_bridge" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
475475 [ return : NativeTypeName ( "struct MetadataOrError" ) ]
0 commit comments