pub struct ConstraintIndexNamer<'a> { /* private fields */ }Expand description
Names the indexes of a relation’s keys one at a time, each after the keys named before it, as index_create names each new index.
Implementations§
Source§impl<'a> ConstraintIndexNamer<'a>
impl<'a> ConstraintIndexNamer<'a>
pub fn new( catalog: &'a dyn IndexNameCatalog, table: &str, ) -> Result<Self, SQLError>
Sourcepub fn occupy(&mut self, names: impl IntoIterator<Item = String>)
pub fn occupy(&mut self, names: impl IntoIterator<Item = String>)
Constraints the statement creates on the relation before its keys, such as a new table’s CHECK and NOT NULL constraints.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ConstraintIndexNamer<'a>
impl<'a> !Send for ConstraintIndexNamer<'a>
impl<'a> !Sync for ConstraintIndexNamer<'a>
impl<'a> !UnwindSafe for ConstraintIndexNamer<'a>
impl<'a> Freeze for ConstraintIndexNamer<'a>
impl<'a> Unpin for ConstraintIndexNamer<'a>
impl<'a> UnsafeUnpin for ConstraintIndexNamer<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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