Skip to content

UseStatement Parsed Statement

UseStatement is a ParsedStatement that represents USE NAMESPACE SQL statement.


UseStatement is resolved to SetCatalogAndNamespace logical command when ResolveCatalogs logical analyzer rule is executed.

Creating Instance

UseStatement takes the following to be created:

  • isNamespaceSet flag (that indicates whether NAMESPACE keyword was used or not)
  • Namespace Parts

UseStatement is created when AstBuilder is requested to visitUse.