Struct bison_orm::builder::IndexBuilder [−][src]
A query builder for CREATE INDEX
statements.
Implementations
impl IndexBuilder
[src]
pub fn new(name: impl Into<String>) -> Self
[src]
Creates a builder for the CREATE INDEX
statement.
pub fn unique(&mut self) -> &mut Self
[src]
Sets the index to be a unique index.
pub fn table(&mut self, table: impl Into<String>) -> &mut Self
[src]
Defines the table for the index.
pub fn column(&mut self, column: impl Into<String>) -> &mut Self
[src]
Appends the given columns to the column list for the index.
Trait Implementations
impl Builder for IndexBuilder
[src]
impl Default for IndexBuilder
[src]
fn default() -> IndexBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for IndexBuilder
[src]
impl Send for IndexBuilder
[src]
impl Sync for IndexBuilder
[src]
impl Unpin for IndexBuilder
[src]
impl UnwindSafe for IndexBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> BuilderExt for T where
T: ChildBuilder,
[src]
T: ChildBuilder,
pub fn quote(&Self, impl Into<String>) -> String
[src]
pub fn schema(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn ident(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn ident_comma<I, S>(&mut Self, I) -> &mut T where
I: IntoIterator<Item = S>,
S: AsRef<str>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn op(&mut Self, Op) -> &mut T
[src]
pub fn arg(&mut Self, impl ToString) -> &mut T
[src]
pub fn join(&mut Self, impl Builder) -> &mut T
[src]
pub fn join_many<I, B>(&mut Self, I) -> &mut T where
I: IntoIterator<Item = B>,
B: Builder,
[src]
I: IntoIterator<Item = B>,
B: Builder,
pub fn nested(&mut Self, impl FnOnce(&mut BaseBuilder)) -> &mut T
[src]
pub fn push_str(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn push(&mut Self, char) -> &mut T
[src]
pub fn prefix(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn comma(&mut Self) -> &mut T
[src]
pub fn pad(&mut Self) -> &mut T
[src]
pub fn is_ident(&Self, impl AsRef<str>) -> bool
[src]
pub fn dialect(&Self) -> &Dialect
[src]
pub fn set_dialect(&mut Self, Dialect) -> &mut T
[src]
pub fn total(&Self) -> usize
[src]
pub fn set_total(&mut Self, usize) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,