Module mz_sql::ast::transform

source ·
Expand description

Provides a publicly available interface to transform our SQL ASTs.

Functions§

  • Changes the name used in an item’s CREATE statement. To complete a rename operation, you must also call create_stmt_rename_refs on all dependent items.
  • Updates all references of from_name in create_stmt to to_name or errors if request is ambiguous.
  • Given a Statement rewrites all references of the schema name cur_schema_name to new_schema_name.
  • Updates all GlobalIds from the keys of ids to the values of ids within create_stmt.