pub struct DependencyGraph {
pub foreign_keys: Vec<FkEdge>,
pub views: Vec<ViewEdge>,
pub indexes: Vec<IndexEdge>,
pub renames: Vec<RenameEdge>,
pub partitions: Vec<PartitionEdge>,
pub sequences: Vec<SequenceEdge>,
}Fields§
§foreign_keys: Vec<FkEdge>§views: Vec<ViewEdge>§indexes: Vec<IndexEdge>§renames: Vec<RenameEdge>§partitions: Vec<PartitionEdge>§sequences: Vec<SequenceEdge>Implementations§
Source§impl DependencyGraph
impl DependencyGraph
pub fn new() -> Self
pub fn is_referenced_by_view(&self, id: &ObjectId) -> Vec<&ObjectId>
pub fn is_referenced_by_fk(&self, id: &ObjectId) -> Vec<(&ObjectId, u64)>
pub fn is_referenced_by_index(&self, id: &ObjectId) -> Vec<&ObjectId>
pub fn partitions_of(&self, id: &ObjectId) -> Vec<&ObjectId>
pub fn resolve_rename<'a>(&'a self, id: &'a ObjectId) -> &'a ObjectId
pub fn check_partition_cycle(&self, parent: &ObjectId, child: &ObjectId) -> bool
Trait Implementations§
Source§impl Clone for DependencyGraph
impl Clone for DependencyGraph
Source§fn clone(&self) -> DependencyGraph
fn clone(&self) -> DependencyGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyGraph
impl Debug for DependencyGraph
Source§impl Default for DependencyGraph
impl Default for DependencyGraph
Source§fn default() -> DependencyGraph
fn default() -> DependencyGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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