module Prostore::Drift::Detector

Overview

Drift detection (ADR-0010).

Compares the library's record of the schema (prostore_schema rows) against what's actually in the database. Resolution:

The detector is a pure function over (live state, schema rows). The runner prepends the auto-fix operations to its plan before the model-driven diff runs.

Extended Modules

Defined in:

prostore/drift/detector.cr

Instance Method Summary

Instance Method Detail

def detect(adapter : Prostore::Adapter::Base, executor : Prostore::Adapter::Base::Executor, schema_rows : Array(SchemaTable::Row), unmanaged_table_filter : Array(String) = [] of String) : FixableDrift #

[View source]