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
I have a splat for Get-DbaDbTable that does not work with New-DbaDbTable. One function expects a "Table" parameter and the other expects a "Name" parameter for the table name. I want to be able to use the same splat for both.
Is there a command that is similiar or close to what you are looking for?
No
Technical Details
The three "*-DbaDbTable" functions don't all use the same paramater name for the table name. I suggest using "Name" as the parameter name. "Table" will need to be added as an alias so that existing code can continue to work.
If there is a "real" possibility that weird user code exists that does a manual check of the fn paramater name, then perhaps just add the appropriate alias to the 3 functions without changing the name.
The text was updated successfully, but these errors were encountered:
Summarize Functionality
I have a splat for Get-DbaDbTable that does not work with New-DbaDbTable. One function expects a "Table" parameter and the other expects a "Name" parameter for the table name. I want to be able to use the same splat for both.
Is there a command that is similiar or close to what you are looking for?
No
Technical Details
The three "*-DbaDbTable" functions don't all use the same paramater name for the table name. I suggest using "Name" as the parameter name. "Table" will need to be added as an alias so that existing code can continue to work.
If there is a "real" possibility that weird user code exists that does a manual check of the fn paramater name, then perhaps just add the appropriate alias to the 3 functions without changing the name.
The text was updated successfully, but these errors were encountered: