Skip to main content

Crate alembic_engine

Crate alembic_engine 

Source
Expand description

engine orchestration: load, validate, plan, apply.

Re-exports§

pub use external::run_external_adapter;
pub use external::ExternalAdapter;
pub use external::ExternalEnvelope;
pub use external::ExternalObject;
pub use external::ExternalRequest;
pub use external::ExternalResponse;
pub use external::EXTERNAL_PROTOCOL_VERSION;

Modules§

external
helpers for implementing external adapters.

Macros§

alembic_external_main
convenience macro to define an external adapter main.

Structs§

AppliedOp
result for a single applied operation.
ApplyReport
aggregated apply report.
DjangoEmitOptions
FieldChange
field-level change for an update op.
ImportReport
ObservedObject
observed backend object representation.
ObservedState
observed backend state indexed by id and key.
Plan
full plan document.
PlanSummary
high-level summary of plan operations.
ProvisionReport
report from ensure_schema provisioning.
Retort
RetryApplyResult
StateData
on-disk state schema.
StateStore
state store wrapper with load/save helpers.

Enums§

AdapterApplyError
BackendId
generic backend identifier (integer or string/uuid).
Op
plan operation.
PostgresTlsMode
TLS configuration for postgres state backend connections.

Traits§

Adapter
adapter contract for backend-specific io.
RetryApplyDriver

Functions§

apply_non_delete_with_retries
apply_plan
apply a plan and update the state store.
build_key_from_schema
build_plan
observe backend state and produce a deterministic plan.
build_request_body
compile_retort
emit_django_app
import_inventory
is_brew_format
load_brew
load a brew file (yaml or json) and merge any includes.
load_raw_yaml
load_retort
plan
build a deterministic plan from desired and observed state.
query_filters_from_key
report_to_result
helper to format a validation report into a Result.
report_to_result_with_sources
helper to format a validation report with source locations into a Result.
resolve_value_for_type
sort_ops_for_apply
order operations for apply (creates/updates first, deletes last).
validate
validate an inventory and return the report.