pub struct ViewDef {
pub name: &'static str,
pub definition: Option<&'static str>,
pub is_existing: bool,
pub error: Option<&'static str>,
}Expand description
Const-friendly view definition
§Examples
use drizzle_types::sqlite::ddl::ViewDef;
const VIEW: ViewDef = ViewDef::new("active_users")
.definition("SELECT * FROM users WHERE active = 1");Fields§
§name: &'static strView name
definition: Option<&'static str>View definition (AS SELECT …)
is_existing: boolWhether this is an existing view (not managed by drizzle)
error: Option<&'static str>Error message if the view failed to parse/validate
Implementations§
Trait Implementations§
impl Copy for ViewDef
impl Eq for ViewDef
impl StructuralPartialEq for ViewDef
Auto Trait Implementations§
impl Freeze for ViewDef
impl RefUnwindSafe for ViewDef
impl Send for ViewDef
impl Sync for ViewDef
impl Unpin for ViewDef
impl UnwindSafe for ViewDef
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