Use in sqlparser::ast - Rust

pub enum Use {
    Catalog(ObjectName),
    Schema(ObjectName),
    Database(ObjectName),
    Warehouse(ObjectName),
    Role(ObjectName),
    SecondaryRoles(SecondaryRoles),
    Object(ObjectName),
    Default,
}
Expand description

A USE (Statement::Use) operation

§

Switch to the given catalog (e.g. USE CATALOG ...).

§

Switch to the given schema (e.g. USE SCHEMA ...).

§

Switch to the given database (e.g. USE DATABASE ...).

§

Switch to the given warehouse (e.g. USE WAREHOUSE ...).

§

Switch to the given role (e.g. USE ROLE ...).

§

Use secondary roles specification (e.g. USE SECONDARY ROLES ...).

§

Use the specified object (e.g. USE foo.bar).

§

Reset to default (e.g. USE DEFAULT).

§
§
§
§
§
§