pub fn diff_views(
target_views: &[View],
source_views: &[View],
out: &mut ChangeSet,
managed_roles: &BTreeSet<Identifier>,
)Expand description
Diff target.views (live DB) against source.views (desired).
Pairs views by QualifiedName and emits:
ViewChange::Createfor views present only in source.ViewChange::Dropfor views present only in target.ViewChange::ReplaceBodywhen the canonical body hashes differ.ViewChange::SetReloptionwhensecurity_barrier/security_invokerdiffer (independent of body changes).ViewChange::SetComment/ViewChange::SetColumnCommentfor metadata changes.Change::AlterObjectOwner/ grant changes when applicable.
No change is emitted when target and source are byte-for-byte identical.