Skip to main content

SQLView

Trait SQLView 

Source
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§

Source

fn definition(&self) -> SQL<'a, Value>

Returns the view’s defining query.

Provided Methods§

Source

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".

Implementors§