Create Alias
alias_created = hc.create_alias("table_name", "alias_name", "database_name")
Result:
This method will a Boolean value to represent whether this operation is successful. If the error pops up when creating alias, “ValueError” exception will be raised.
Parameter description:
Parameters | Description | Required |
---|---|---|
table_name (str) | Table to create alias | Yes |
alias_name (str) | Alias to be created | Yes |
database_name (str) | Database where the table is created | No, defaults to "default" database |
Delete Alias
alias_deleted = hc.delete_alias("alias_name", "database_name")
Result:
This method returns a Boolean value to represent whether this operation is successful. If the error pops up when deleting alias, “ValueError” exception will be raised.
Parameter description:
Parameters | Description | Required |
---|---|---|
alias_name (str) | Alias to be deleted | Yes |
database_name (str) | Database where the table containing this alias is created | No, defaults to "default" database |