|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#include <lance/lance.h>
Public Attributes | |
| uint64_t | interval |
| int64_t | older_than_seconds |
| int32_t | older_than_nanos |
Native auto-cleanup parameters for lance_dataset_write_with_options.
interval is the number of committed versions between cleanup runs; 0 is a valid native value that considers cleanup on every commit. It is narrowed to the native usize type; values that do not fit return LANCE_ERR_INVALID_ARGUMENT.
older_than_seconds and older_than_nanos express the native chrono::TimeDelta retention window as older_than_seconds + older_than_nanos / 1000000000. Both fields carry the sign, and older_than_nanos preserves subsecond precision. It must be in [-999999999, 999999999], and the combined value must fit in the native TimeDelta range (about +/-292 million years). Negative durations are forwarded to Lance, which rejects them when it builds the write transaction because the persisted config uses std::time::Duration.