pub struct CreateView {
pub name: QualifiedName,
pub sql: String,
pub aliases: Vec<String>,
pub if_not_exists: bool,
pub or_replace: bool,
}Expand description
A bound CREATE VIEW.
The body is the text that was written rather than the plan it bound to. It was bound once on the
way through here, which is what refuses a view over a table that is not there, and the plan that
came out of that is then thrown away, because a view follows the tables underneath it and a plan
cannot. See rudb_catalog::View.
Fields§
§name: QualifiedNameThe full name the view gets.
sql: StringThe body, as written.
aliases: Vec<String>The column names the statement gave, which rename a prefix of what the body produces.
if_not_exists: boolWhether an existing entry of that name is left alone rather than being an error.
or_replace: boolWhether an existing entry of that name is dropped first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateView
impl RefUnwindSafe for CreateView
impl Send for CreateView
impl Sync for CreateView
impl Unpin for CreateView
impl UnsafeUnpin for CreateView
impl UnwindSafe for CreateView
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