Skip to main content

create_view

Function create_view 

Source
pub fn create_view(ast: &Ast, index: CreateViewRef) -> String
Expand description

A CREATE VIEW written back out, which is what duckdb_views() reports as sql.

The name loses its qualification, which was measured: CREATE VIEW main.v AS ... comes back as CREATE VIEW v AS .... So does OR REPLACE and so does IF NOT EXISTS, since what the column answers is what this view is and not what the statement that made it asked for.