pub struct View { /* private fields */ }
Expand description
Represents an entire View, which may be Part of a wider Schema or used standalone.
Can be converted into an SQL Statement via the SQLStatement Methods.
It is an Error for the name
to be empty (Error::EmptyViewName) or the Select to be empty (Error::EmptyViewSelect).
Implementations§
Source§impl View
impl View
pub fn new( name: String, temp: bool, columns: Vec<ViewColumn>, select: String, ) -> Self
pub fn new_default(name: String, select: String) -> Self
pub fn add_column(self, column: ViewColumn) -> Self
pub fn set_name(self, name: String) -> Self
pub fn set_temp(self, temp: bool) -> Self
pub fn set_select(self, select: String) -> Self
Trait Implementations§
Source§impl SQLStatement for View
impl SQLStatement for View
impl Eq for View
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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