pub struct AnalysisState {
pub pg_version_num: Option<u32>,
pub baseline_relations: HashSet<ObjectId>,
pub baseline_foreign_keys: HashSet<(ObjectId, String)>,
pub local: LocalState,
}Fields§
§pg_version_num: Option<u32>§baseline_relations: HashSet<ObjectId>§baseline_foreign_keys: HashSet<(ObjectId, String)>§local: LocalStateImplementations§
Source§impl AnalysisState
impl AnalysisState
pub fn new(cache: DbCache) -> Self
pub fn get_relation(&self, id: &ObjectId) -> Option<&RelationOverlay>
pub fn relation_is_present(&self, id: &ObjectId) -> bool
pub fn get_cascade_closure(&self, target_oid: &ObjectId) -> CascadeResult
pub fn apply( &mut self, mutation: &Mutation, precomputed_cascade: Option<&CascadeResult>, ) -> MutationResult
Auto Trait Implementations§
impl Freeze for AnalysisState
impl RefUnwindSafe for AnalysisState
impl Send for AnalysisState
impl Sync for AnalysisState
impl Unpin for AnalysisState
impl UnsafeUnpin for AnalysisState
impl UnwindSafe for AnalysisState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more