Struct bison_orm::builder::IndexBuilder[][src]

pub struct IndexBuilder { /* fields omitted */ }

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> BuilderExt for T where
    T: ChildBuilder, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.