pub trait SQLView<'a, Type: SQLSchemaType, Value: SQLParam + 'a>: SQLTable<'a, Type, Value> {
// Required method
fn definition(&self) -> SQL<'a, Value>;
// Provided method
fn is_existing(&self) -> bool { ... }
}Expand description
Trait for database views.
A View is essentially a named SQL query that can be queried like a table.
Required Methods§
Sourcefn definition(&self) -> SQL<'a, Value>
fn definition(&self) -> SQL<'a, Value>
Returns the SQL definition of this view (the SELECT statement).
Provided Methods§
Sourcefn is_existing(&self) -> bool
fn is_existing(&self) -> bool
Returns true if this is an existing view in the database not managed by Drizzle.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.