Aliasing lets you reference a view by an additional name. This is useful for handling database table renames and for creating duplicate views needed in join logic.Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Handling table name changes
If the name of view’s base table changes in the database, it can cause content in Omni to break. Use thealiases parameter to add the table’s original name(s), which will allow Omni to find the correct table in the database.
Duplicating views with aliases
In some cases, you may need to duplicate a view - for example, ausers view that contains both buyers and sellers. Aliased views are automatically created when you define them as joins in the model’s Relationships file.
The following example demonstrates how to alias the users view to create buyers and sellers views. Note that the names of the aliased views are used to declare the joins:
relationships.yaml