Skip to content

Commit 7b79e4b

Browse files
authored
refactor: move the execution history store into sqlbuild-python-front (#1543)
The execution history store (its SQLite and PostgreSQL backends, appends, statements, conversions and Python functions) and the resource costs table move from sqlbuild-python into sqlbuild-python-front, the layer fensu already assigns them. Nothing in a lower crate imports them, so the cost report can follow later without reaching back into sqlbuild-python. Old paths are deleted and callers updated; there are no re-exports. The review command changes only its imports. main/ entries hold the bodies they used to forward to. The resource costs table stays an XSB072/XSB073 edge as it was under native_host. The sqlbuild-python cap drops to its new size, and the moved files' budgets are re-keyed with unchanged totals.
1 parent c14fca0 commit 7b79e4b

37 files changed

Lines changed: 2527 additions & 2255 deletions

File tree

‎crates/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tested and benchmarked with `cargo test` alone.
2929
| `sqlbuild-project` | The compiled project as plain Rust: `CompiledProject` with the producers' facts and each resource's records (model inputs and schemas, compiled models and their analysis, sources, functions, audits and seeds), and what those records answer without Python, such as lineage rows, resolved namespaces and dependency keys. Values the host owns, such as user config and discovered files, and the views it builds lazily live in one slot per record, whose types `sqlbuild-python-project` supplies through the `ProjectHost` trait; reads that need Python stay in the bindings as extension traits. |
3030
| `sqlbuild-cli` | The `sqb` and `sqlbuild` executables: `--version`, unchanged compiles replayed from the shared reuse store with Python's exact streams, exit code and compute log capture, and a handoff of every other invocation to the installed `sqlbuild-python` script. Built as its own wheel (`crates/sqlbuild-cli/pyproject.toml`). |
3131
| `sqlbuild-python-base` | The base of the PyO3 bindings: native record, enum and error classes with their specs, registration, construction and field reads; keyword calls, imports, conversions and panics at the Python boundary; host entry calls; the process allocator; and the shared runtime the binding modules build on: the native store, compile context, diagnostics, progress and terminal text, warehouse access and orchestration reads. |
32-
| `sqlbuild-python-front` | The front of the compile pipeline as PyO3 bindings, on top of `sqlbuild-python-base`: project discovery, model configuration and headers, scopes, macro rendering and authored values, SQL text, model attachment and the compile driver, cursors, contract and refactor facts, and the warehouse state tables of consumption, observations and audit results. |
32+
| `sqlbuild-python-front` | The front of the compile pipeline as PyO3 bindings, on top of `sqlbuild-python-base`: project discovery, model configuration and headers, scopes, macro rendering and authored values, SQL text, model attachment and the compile driver, cursors, contract and refactor facts, the warehouse state tables of consumption, observations and audit results, the execution history store and the resource costs table. |
3333
| `sqlbuild-python-project` | The compiled project as PyO3 bindings, on top of `sqlbuild-python-front`: the project host and the Python views of compiled models, inputs and resources, the compiled-project snapshot, analysis classes and the analysis session, the project graph, references, lineage, fingerprints, contracts and semantic shapes, audit rendering, and the planner's identities, scope, selection, phases, fixture strategy and SQL test planning. |
3434
| `sqlbuild-python-planner` | The plan layer as PyO3 bindings, on top of `sqlbuild-python-project`: execution plans and their entries, planner phases, change detection, migrations, reference and cursor resolution, scenarios, strategy and warehouse inspection, plus freshness, consumption, microbatches, observations, lifecycle events and plan output. |
3535
| `sqlbuild-python-compile` | The compile layer as PyO3 bindings, on top of `sqlbuild-python-project` and beside `sqlbuild-python-planner`: the compile command and driver, input loops and compile-input attachment, project assembly, analysis and the analysis session, Rules, lineage, semantic checks, compile deltas and outputs, the DAG artifact, manifest, frontier, offline scope facts, SQL test glue and auditing. |

crates/sqlbuild-python/src/bindings/_helpers/execution_history/appends.rs renamed to crates/sqlbuild-python-front/src/execution_history/_helpers/appends.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ use sqlbuild_state::execution_history::main::canonical_event_id::canonical_event
55
use sqlbuild_state::execution_history::main::prepared_events::prepared_events;
66
use sqlbuild_state::execution_history::models::{EventSubmission, PreparedEvent};
77

8-
use crate::bindings::_helpers::execution_history::conversion::{
9-
checked, envelope_of, event_id_of, event_json,
10-
};
8+
use crate::execution_history::_helpers::conversion::checked;
9+
use crate::execution_history::_helpers::conversion::envelope_of;
10+
use crate::execution_history::_helpers::conversion::event_id_of;
11+
use crate::execution_history::_helpers::conversion::event_json;
1112

1213
/// The required stable id of a known or opaque event.
1314
pub(crate) fn event_id(event: &Bound<'_, PyAny>) -> PyResult<String> {

crates/sqlbuild-python/src/bindings/_helpers/execution_history/conversion.rs renamed to crates/sqlbuild-python-front/src/execution_history/_helpers/conversion.rs

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//! Execution history models, timestamps, SQL parameters and errors across the Python boundary.
22
3+
use crate::execution_history::main::nullable_text::nullable_text;
4+
use crate::execution_history::main::parsed_iso::parsed_iso;
5+
use crate::execution_history::main::utc::utc;
36
use pyo3::IntoPyObjectExt;
4-
use pyo3::exceptions::PyValueError;
57
use pyo3::prelude::{Bound, PyAny, PyAnyMethods, PyErr, PyResult, Python};
68
use pyo3::types::{PyBool, PyInt, PyList, PyTuple};
79
use sqlbuild_host::entries::models::ExecutorHost;
@@ -15,15 +17,15 @@ use sqlbuild_state::execution_history::models::{
1517
};
1618
use sqlbuild_state::execution_history::types::UtcTime;
1719

20+
use crate::cursor::constants::DATETIME_MODULE;
21+
use crate::cursor::main::values::local_date_time::local_date_time;
1822
use sqlbuild_python_base::boundary::main::call_with::call_with;
1923
use sqlbuild_python_base::boundary::main::imported::imported;
2024
use sqlbuild_python_base::native_host::main::host_entry::host_entry;
2125
use sqlbuild_python_base::records::main::fields::field::field as native_field;
22-
use sqlbuild_python_front::cursor::constants::DATETIME_MODULE;
23-
use sqlbuild_python_front::cursor::main::values::local_date_time::local_date_time;
2426

25-
const UTC_SUFFIX: &str = "Z";
26-
const UTC_OFFSET: &str = "+00:00";
27+
pub(crate) const UTC_SUFFIX: &str = "Z";
28+
pub(crate) const UTC_OFFSET: &str = "+00:00";
2729
const DEFAULT_SCHEMA_VERSION: i64 = 1;
2830
const UTC_OFFSET_SECONDS: f64 = 0.0;
2931

@@ -79,19 +81,6 @@ pub(crate) fn exact_int(value: &Bound<'_, PyAny>) -> Option<i64> {
7981
value.extract().unwrap_or(None)
8082
}
8183

82-
/// `value` as text, or `None` when it is `None`.
83-
pub(crate) fn nullable_text(value: &Bound<'_, PyAny>) -> PyResult<Option<String>> {
84-
if value.is_none() {
85-
return Ok(None);
86-
}
87-
Ok(Some(value.extract()?))
88-
}
89-
90-
/// `datetime.UTC`.
91-
pub(crate) fn utc(py: Python<'_>) -> PyResult<Bound<'_, PyAny>> {
92-
imported(py, DATETIME_MODULE, "UTC")
93-
}
94-
9584
/// An aware `datetime` as its UTC wall time.
9685
pub(crate) fn utc_time(value: &Bound<'_, PyAny>) -> PyResult<UtcTime> {
9786
local_date_time(&value.call_method1("astimezone", (utc(value.py())?,))?)
@@ -122,16 +111,6 @@ pub(crate) fn utc_zone(value: &Bound<'_, PyAny>) -> PyResult<bool> {
122111
Ok(native_field(value, "tzinfo")?.is(&utc(value.py())?))
123112
}
124113

125-
/// `datetime.fromisoformat(text.replace("Z", "+00:00"))`, or `None` on `ValueError`.
126-
pub(crate) fn parsed_iso<'py>(py: Python<'py>, text: &str) -> PyResult<Option<Bound<'py, PyAny>>> {
127-
let normalized: String = text.replace(UTC_SUFFIX, UTC_OFFSET);
128-
match imported(py, DATETIME_MODULE, "datetime")?.call_method1("fromisoformat", (normalized,)) {
129-
Ok(value) => Ok(Some(value)),
130-
Err(error) if error.is_instance_of::<PyValueError>(py) => Ok(None),
131-
Err(error) => Err(error),
132-
}
133-
}
134-
135114
fn filter_time(value: &Bound<'_, PyAny>) -> PyResult<Option<FilterTime>> {
136115
if value.is_none() {
137116
return Ok(None);

crates/sqlbuild-python/src/bindings/_helpers/execution_history/functions.rs renamed to crates/sqlbuild-python-front/src/execution_history/_helpers/functions.rs

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! Backend-neutral execution history entry points and model validation.
22
3-
use pyo3::prelude::{
4-
Bound, PyAny, PyAnyMethods, PyErr, PyModule, PyModuleMethods, PyResult, Python, pyfunction,
5-
wrap_pyfunction,
6-
};
3+
use pyo3::prelude::{Bound, PyAny, PyAnyMethods, PyErr, PyResult, Python, pyfunction};
74
use pyo3::types::PyTuple;
85
use sqlbuild_python_base::boundary::main::optional_text::optional_text;
96
use sqlbuild_state::execution_history::main::project_runs::project_runs;
@@ -13,29 +10,34 @@ use sqlbuild_state::execution_history::main::validate_page_limit::validate_page_
1310
use sqlbuild_state::execution_history::main::validate_stored_event::validate_stored_event;
1411
use sqlbuild_state::execution_history::models::FilterSpec;
1512

16-
use crate::bindings::_helpers::execution_history::appends::{event_content, event_id};
17-
use crate::bindings::_helpers::execution_history::conversion::{
18-
checked, event_filter_spec, exact_int, projection_facts, run_filter_spec, run_records,
19-
run_rows, utc_zone,
20-
};
13+
use crate::execution_history::_helpers::appends::event_content;
14+
use crate::execution_history::_helpers::appends::event_id;
15+
use crate::execution_history::_helpers::conversion::checked;
16+
use crate::execution_history::_helpers::conversion::event_filter_spec;
17+
use crate::execution_history::_helpers::conversion::exact_int;
18+
use crate::execution_history::_helpers::conversion::projection_facts;
19+
use crate::execution_history::_helpers::conversion::run_filter_spec;
20+
use crate::execution_history::_helpers::conversion::run_records;
21+
use crate::execution_history::_helpers::conversion::run_rows;
22+
use crate::execution_history::_helpers::conversion::utc_zone;
2123
use sqlbuild_python_base::records::main::fields::field::field as native_field;
2224

2325
/// Return the required stable ID from a known or opaque lifecycle event.
2426
#[pyfunction]
25-
fn canonical_event_id(event: &Bound<'_, PyAny>) -> PyResult<String> {
27+
pub(crate) fn canonical_event_id(event: &Bound<'_, PyAny>) -> PyResult<String> {
2628
event_id(event)
2729
}
2830

2931
/// Return deterministic content for lifecycle event idempotency comparison.
3032
#[pyfunction]
31-
fn canonical_event_content(event: &Bound<'_, PyAny>) -> PyResult<String> {
33+
pub(crate) fn canonical_event_content(event: &Bound<'_, PyAny>) -> PyResult<String> {
3234
event_content(event)
3335
}
3436

3537
/// Apply durable event facts in storage order to immutable run projections.
3638
#[pyfunction]
3739
#[pyo3(signature = (*, stored_events, current_runs = None))]
38-
fn project_execution_runs<'py>(
40+
pub(crate) fn project_execution_runs<'py>(
3941
py: Python<'py>,
4042
stored_events: &Bound<'py, PyAny>,
4143
current_runs: Option<&Bound<'py, PyAny>>,
@@ -50,14 +52,14 @@ fn project_execution_runs<'py>(
5052

5153
/// Validate a positive page limit no greater than the public maximum.
5254
#[pyfunction]
53-
fn validate_history_page_limit(limit: &Bound<'_, PyAny>) -> Result<(), PyErr> {
55+
pub(crate) fn validate_history_page_limit(limit: &Bound<'_, PyAny>) -> Result<(), PyErr> {
5456
checked(limit.py(), validate_page_limit(exact_int(limit)))
5557
}
5658

5759
/// Append facts durably before publishing their rebuildable run projection.
5860
#[pyfunction]
5961
#[pyo3(signature = (*, event_log, run_storage, events))]
60-
fn append_and_project<'py>(
62+
pub(crate) fn append_and_project<'py>(
6163
event_log: &Bound<'py, PyAny>,
6264
run_storage: &Bound<'py, PyAny>,
6365
events: &Bound<'py, PyAny>,
@@ -69,7 +71,7 @@ fn append_and_project<'py>(
6971

7072
/// Validate a `StoredEvent`'s position, cursor and UTC receipt time.
7173
#[pyfunction]
72-
fn validate_stored_history_event(record: &Bound<'_, PyAny>) -> Result<(), PyErr> {
74+
pub(crate) fn validate_stored_history_event(record: &Bound<'_, PyAny>) -> Result<(), PyErr> {
7375
let py: Python<'_> = record.py();
7476
let storage_order: i64 = native_field(record, "storage_order")?.extract()?;
7577
let cursor: String = optional_text(&native_field(record, "cursor")?)?.unwrap_or_default();
@@ -82,7 +84,7 @@ fn validate_stored_history_event(record: &Bound<'_, PyAny>) -> Result<(), PyErr>
8284

8385
/// Validate an `EventFilter`.
8486
#[pyfunction]
85-
fn validate_history_event_filter(event_filter: &Bound<'_, PyAny>) -> Result<(), PyErr> {
87+
pub(crate) fn validate_history_event_filter(event_filter: &Bound<'_, PyAny>) -> Result<(), PyErr> {
8688
checked(
8789
event_filter.py(),
8890
validate_filter(FilterSpec::Event(&event_filter_spec(event_filter)?)),
@@ -91,7 +93,7 @@ fn validate_history_event_filter(event_filter: &Bound<'_, PyAny>) -> Result<(),
9193

9294
/// Validate a `RunFilter`.
9395
#[pyfunction]
94-
fn validate_history_run_filter(run_filter: &Bound<'_, PyAny>) -> Result<(), PyErr> {
96+
pub(crate) fn validate_history_run_filter(run_filter: &Bound<'_, PyAny>) -> Result<(), PyErr> {
9597
checked(
9698
run_filter.py(),
9799
validate_filter(FilterSpec::Run(&run_filter_spec(run_filter)?)),
@@ -101,7 +103,10 @@ fn validate_history_run_filter(run_filter: &Bound<'_, PyAny>) -> Result<(), PyEr
101103
/// Validate an `EventPage` or `RunPage` next cursor against its records.
102104
#[pyfunction]
103105
#[pyo3(signature = (*, page, is_event_page))]
104-
fn validate_history_page(page: &Bound<'_, PyAny>, is_event_page: bool) -> Result<(), PyErr> {
106+
pub(crate) fn validate_history_page(
107+
page: &Bound<'_, PyAny>,
108+
is_event_page: bool,
109+
) -> Result<(), PyErr> {
105110
let py: Python<'_> = page.py();
106111
let records: Bound<'_, PyAny> = native_field(page, "records")?;
107112
let has_records: bool = records.is_truthy()?;
@@ -122,15 +127,3 @@ fn validate_history_page(page: &Bound<'_, PyAny>, is_event_page: bool) -> Result
122127
validate_page(is_event_page, has_records, (next, last_text.as_deref())),
123128
)
124129
}
125-
126-
pub(crate) fn register(module: &Bound<'_, PyModule>) -> PyResult<()> {
127-
module.add_function(wrap_pyfunction!(canonical_event_id, module)?)?;
128-
module.add_function(wrap_pyfunction!(canonical_event_content, module)?)?;
129-
module.add_function(wrap_pyfunction!(project_execution_runs, module)?)?;
130-
module.add_function(wrap_pyfunction!(validate_history_page_limit, module)?)?;
131-
module.add_function(wrap_pyfunction!(append_and_project, module)?)?;
132-
module.add_function(wrap_pyfunction!(validate_stored_history_event, module)?)?;
133-
module.add_function(wrap_pyfunction!(validate_history_event_filter, module)?)?;
134-
module.add_function(wrap_pyfunction!(validate_history_run_filter, module)?)?;
135-
module.add_function(wrap_pyfunction!(validate_history_page, module)?)
136-
}

crates/sqlbuild-python/src/bindings/_helpers/execution_history/getters.rs renamed to crates/sqlbuild-python-front/src/execution_history/_helpers/getters.rs

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,10 @@
33
use pyo3::IntoPyObjectExt;
44
use pyo3::prelude::{Bound, PyAny, PyResult, Python};
55

6-
use crate::bindings::_helpers::execution_history::postgres::PostgresExecutionHistory;
7-
use crate::bindings::_helpers::execution_history::sqlite::SqliteExecutionHistory;
8-
use sqlbuild_python_base::records::main::registry::class_of::class_of;
9-
use sqlbuild_python_base::records::models::GetterEntry;
6+
use crate::execution_history::models::PostgresExecutionHistory;
7+
use crate::execution_history::models::SqliteExecutionHistory;
108

11-
/// The getter readers of this module's native pyclasses.
12-
pub(crate) const GETTERS: &[GetterEntry] = &[
13-
GetterEntry {
14-
class: class_of::<PostgresExecutionHistory>,
15-
read: read_postgres_execution_history,
16-
},
17-
GetterEntry {
18-
class: class_of::<SqliteExecutionHistory>,
19-
read: read_sqlite_execution_history,
20-
},
21-
];
22-
23-
fn read_postgres_execution_history<'py>(
9+
pub(crate) fn read_postgres_execution_history<'py>(
2410
value: &Bound<'py, PyAny>,
2511
name: &str,
2612
) -> Option<PyResult<Bound<'py, PyAny>>> {
@@ -37,7 +23,7 @@ fn read_postgres_execution_history<'py>(
3723
})
3824
}
3925

40-
fn read_sqlite_execution_history<'py>(
26+
pub(crate) fn read_sqlite_execution_history<'py>(
4127
value: &Bound<'py, PyAny>,
4228
name: &str,
4329
) -> Option<PyResult<Bound<'py, PyAny>>> {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pub(crate) mod appends;
2+
pub(crate) mod conversion;
3+
pub(crate) mod functions;
4+
pub(crate) mod getters;
5+
pub(crate) mod postgres;
6+
pub(crate) mod sqlite;
7+
pub(crate) mod statements;
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
//! `PostgresExecutionHistory`: deployed PostgreSQL event-log and run-projection storage.
2+
3+
use crate::execution_history::main::utc::utc;
4+
use pyo3::prelude::{Bound, PyAny, PyAnyMethods, PyErr, PyResult, Python};
5+
use pyo3::types::PyDateTime;
6+
use sqlbuild_host::entries::models::ExecutorHost;
7+
use sqlbuild_state::execution_history::constants::POSTGRES_RETRYABLE_SQLSTATES;
8+
use sqlbuild_state::execution_history::models::RunRow;
9+
use sqlbuild_state::execution_history::types::UtcTime;
10+
11+
use crate::execution_history::_helpers::conversion::exact_int;
12+
use crate::execution_history::_helpers::conversion::parsed_status;
13+
use crate::execution_history::_helpers::conversion::storage_error;
14+
use crate::execution_history::_helpers::conversion::utc_time;
15+
use crate::execution_history::_helpers::statements::column;
16+
use sqlbuild_python_base::boundary::main::imported::imported;
17+
18+
pub(crate) const PSYCOPG_MODULE: &str = "psycopg";
19+
pub(crate) const PSYCOPG_ROWS_MODULE: &str = "psycopg.rows";
20+
pub(crate) const CLOSED: &str = "PostgreSQL execution history storage is closed";
21+
pub(crate) const MISSING_DRIVER: &str = "PostgreSQL execution history requires psycopg 3; install sqlbuild[postgres] or 'psycopg[binary]>=3.2'";
22+
pub(crate) const CONNECT_FAILED: &str = "cannot connect to PostgreSQL execution history; verify the secret-resolved DSN, network access, and sqlbuild[postgres] installation";
23+
pub(crate) const READ_FAILED: &str = "PostgreSQL execution history read failed";
24+
pub(crate) const METADATA_INVALID: &str = "PostgreSQL execution history schema metadata is invalid";
25+
pub(crate) const NAMESPACE_MISSING: &str =
26+
"PostgreSQL execution history cursor namespace is missing";
27+
pub(crate) const STORAGE_ERROR: ExecutorHost = ExecutorHost::ExecutionHistoryStorageError;
28+
29+
/// The `psycopg.Error` class.
30+
fn driver_error_class(py: Python<'_>) -> PyResult<Bound<'_, PyAny>> {
31+
imported(py, PSYCOPG_MODULE, "Error")
32+
}
33+
34+
pub(crate) fn driver_failure(py: Python<'_>, error: &PyErr) -> PyResult<bool> {
35+
Ok(error.is_instance(py, &driver_error_class(py)?))
36+
}
37+
38+
/// Serialization failures and deadlocks retry while attempts remain.
39+
pub(crate) fn retries_transaction(sqlstate: Option<&str>, attempts: i64, max_retries: i64) -> bool {
40+
sqlstate.is_some_and(|state| POSTGRES_RETRYABLE_SQLSTATES.contains(&state))
41+
&& attempts < max_retries
42+
}
43+
44+
/// `value` when it is an `int` that is not a `bool`.
45+
pub(crate) fn storage_position(value: &Bound<'_, PyAny>, message: &str) -> PyResult<i64> {
46+
exact_int(value).ok_or_else(|| storage_error(value.py(), message))
47+
}
48+
49+
/// `value.astimezone(UTC)` when it is a `datetime`.
50+
pub(crate) fn utc_datetime<'py>(
51+
value: &Bound<'py, PyAny>,
52+
message: &str,
53+
) -> PyResult<Bound<'py, PyAny>> {
54+
let py: Python<'py> = value.py();
55+
if !value.is_instance_of::<PyDateTime>() {
56+
return Err(storage_error(py, message));
57+
}
58+
value.call_method1("astimezone", (utc(py)?,))
59+
}
60+
61+
fn optional_utc(value: &Bound<'_, PyAny>) -> PyResult<Option<UtcTime>> {
62+
if !value.is_instance_of::<PyDateTime>() {
63+
return Ok(None);
64+
}
65+
utc_time(value).map(Some)
66+
}
67+
68+
fn text_column(row: &Bound<'_, PyAny>, name: &str) -> PyResult<String> {
69+
column(row, name)?.str()?.extract()
70+
}
71+
72+
/// One `sqlbuild_run_projection` row as a projected run.
73+
pub(crate) fn stored_run(row: &Bound<'_, PyAny>) -> PyResult<RunRow> {
74+
let py: Python<'_> = row.py();
75+
let created_at = utc_datetime(
76+
&column(row, "created_at")?,
77+
"PostgreSQL run timestamp is invalid",
78+
)?;
79+
let last_storage_order: i64 = storage_position(
80+
&column(row, "last_event_storage_id")?,
81+
"PostgreSQL run storage position is invalid",
82+
)?;
83+
let optional_str = |name: &str| -> PyResult<Option<String>> {
84+
let value = column(row, name)?;
85+
if value.is_none() {
86+
return Ok(None);
87+
}
88+
Ok(Some(value.str()?.extract()?))
89+
};
90+
Ok(RunRow {
91+
run_id: text_column(row, "run_id")?,
92+
invocation_id: text_column(row, "invocation_id")?,
93+
created_at: utc_time(&created_at)?,
94+
status: parsed_status(py, &text_column(row, "status")?)?,
95+
is_complete: column(row, "is_complete")?.is_truthy()?,
96+
last_event_cursor: text_column(row, "last_event_cursor")?,
97+
last_storage_order,
98+
command: optional_str("command")?,
99+
target: optional_str("target")?,
100+
environment: optional_str("environment")?,
101+
started_at: optional_utc(&column(row, "started_at")?)?,
102+
ended_at: optional_utc(&column(row, "ended_at")?)?,
103+
})
104+
}

0 commit comments

Comments
 (0)