risingwave_meta::controller

Module rename

source

Structs§

  • QueryRewriter is a visitor that updates all references of relation named from to to in the given query, which is the part of create statement of relation.

Functions§

  • alter_relation_rename renames a relation to a new name in its Create statement, and returns the updated definition raw sql. Note that the definition must be a Create statement and the new_name must be a valid identifier, it should be validated before calling this function. To update all relations that depend on the renamed one, use alter_relation_rename_refs.
  • alter_relation_rename_refs updates all references of renamed-relation in the definition of target relation’s Create statement.
  • Replace the last ident in the table_name with the given name, the object name is ensured to be non-empty. e.g. schema.table or database.schema.table.