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
//! FlowLog runtime — types and re-exports consumed by generated code.
//!
//! This crate is the runtime half of the FlowLog library-mode toolchain.
//! Pair it with [`flowlog-build`] in your `[build-dependencies]`:
//!
//! ```toml
//! [dependencies]
//! flowlog-runtime = "0.2"
//!
//! [build-dependencies]
//! flowlog-build = "0.2"
//! ```
//!
//! ## What's in this crate
//!
//! | Module | Purpose |
//! |--------|---------|
//! | [`Relation`] | Trait implemented by every generated input struct |
//! | [`io`] | Byte-range file reader + first-column sharding for parallel ingestion |
//! | [`intern`] | Thread-safe string interning pool (`lasso`) |
//! | [`txn`] | Transaction state types shared with incremental drivers |
//!
//! The re-exported crates (`timely`, `differential_dataflow`, etc.) are
//! used internally by the generated code — you should not need to
//! reference them directly.
/// Trait implemented by every generated input relation struct.
///
/// The generated `DatalogBatchEngine` calls [`Relation::to_tuple`] at
/// insert time to convert user-facing structs (e.g. `Edge { x: 1, y: 2 }`)
/// into the internal differential-dataflow tuple representation.
///
/// You don't implement this trait manually — `flowlog-build` generates an
/// impl for each `.input` relation declared in your `.dl` program.
// Re-exports for generated code. The `include!()`'d code references these
// via `::flowlog_runtime::timely::*`, `::flowlog_runtime::differential_dataflow::*`,
// etc. Users should not need to use them directly.
pub use differential_dataflow;
pub use lasso;
pub use ordered_float;
pub use serde;
pub use timely;