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
A database view: a named query that can be selected from like a table.
Generated by the view macros.
Required Methods§
Sourcefn definition(&self) -> SQL<'a, Value>
fn definition(&self) -> SQL<'a, Value>
Returns the view’s defining query.
Provided Methods§
Sourcefn is_existing(&self) -> bool
fn is_existing(&self) -> bool
Returns true for a view that already exists in the database and is
not created or dropped by Drizzle.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".