You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an upcoming version of SDV, we will be consolidating the Multi and Single table metadata objects into a streamlined Metadata object. Effectively, this object is the same as multi-table, so it includes functions that are suited for detecting multiple tables at once.
However, if you have a single table, it should still be usable without adding much friction. Currently, all the Metadata updating functions require you to input a table name, which really isn't necessary when all you have is a single table.
Expected behavior
For all of the metadata update functions (listed below), make the table_name parameter optional. If necessary, this means we should move its position to be after all the required parameters.
Then update the functionality as follows:
If there are multiple tables in the Metadata, a table_name should be provided. If it is not provided, throw an error.
Error: There are multiple tables in your metadata. Please specify a 'table_name' to use this function.
But if there is only a single table in the Metadata, then it's ok if table_name is missing. Proceed with the desired functionality.
Additional context
Make the change for the following functions:
get_column_names
update_column
update_columns
update_columns_metadata
add_column
add_column_relationship
set_primary_key
remove_primary_key
add_alternate_keys
The text was updated successfully, but these errors were encountered:
Problem Description
In an upcoming version of SDV, we will be consolidating the Multi and Single table metadata objects into a streamlined Metadata object. Effectively, this object is the same as multi-table, so it includes functions that are suited for detecting multiple tables at once.
However, if you have a single table, it should still be usable without adding much friction. Currently, all the Metadata updating functions require you to input a table name, which really isn't necessary when all you have is a single table.
Expected behavior
For all of the metadata update functions (listed below), make the
table_name
parameter optional. If necessary, this means we should move its position to be after all the required parameters.Then update the functionality as follows:
table_name
should be provided. If it is not provided, throw an error.table_name
is missing. Proceed with the desired functionality.Additional context
Make the change for the following functions:
get_column_names
update_column
update_columns
update_columns_metadata
add_column
add_column_relationship
set_primary_key
remove_primary_key
add_alternate_keys
The text was updated successfully, but these errors were encountered: