Skip to main content

parse_use

Function parse_use 

Source
pub fn parse_use(query: &str) -> Option<UseTarget>
Expand description

Parse a USE … statement into its catalog/schema target, or None if the query is not a USE statement.

Forms (Spark/Databricks):

  • USE db / USE SCHEMA db / USE DATABASE db / USE NAMESPACE ns — schema
  • USE CATALOG cat — catalog
  • USE cat.schema — both