1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/// Type adapters that bridge external data-frame / record-batch libraries to
/// `zer_core::record::Record` without a string round-trip.
///
/// # Feature flags
///
/// | flag | what it adds |
/// |----------|---------------------------------------------------|
/// | `polars` | `PolarsIngest` extension trait for Polars DataFrames |
/// | `arrow` | `ArrowIngest` extension trait for Arrow RecordBatches |
///
/// Enable only the features you need to keep compile times low.
pub use ;
pub use ;
pub use PolarsIngest;
pub use ArrowIngest;
/// Configuration for loading a dataset from an external source.
///
/// Specifies which column holds the record's natural key (e.g. BSN, UUID,
/// or any primary-key column) and what source label to attach.
///
/// The adapter uses `key_column` to extract the natural key from each row,
/// then derives a stable `RecordId` via `FNV-1a(source:key)`. This removes
/// the need for users to maintain sequential integer offsets across datasets.
///
/// # Example
///
/// ```rust
/// use zer_adapters::DatasetConfig;
///
/// let cfg = DatasetConfig::new("brp", "bsn");
/// assert_eq!(cfg.source, "brp");
/// assert_eq!(cfg.key_column, "bsn");
/// ```