Azure / Azure/data-api-builder
[Enh]: Hide deprecated flags from dab add and update
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
## What?
✅ Hide `dab add --source.params` in the CLI `--help` to encourage the new syntax.
✅ Hide `dab update --source.params` in the CLI `--help` to encourage the new syntax.
✅ Hide `dab update --source.key-fields` in the CLI `--help` to encourage the new syntax.
✅ Hide `dab update -m` in the CLI `--help` to encourage the new syntax.
✅ Hide `dab update --map` in the CLI `--help` to encourage the new syntax.
### Include deprecation warning
```
dab add --source.params is deprecated, next time use --parameters.*
dab update --source.params is deprecated, next time use --parameters.*
dab update --source.key-fields is deprecated, next time use --fields.*
dab update -m is deprecated, next time use --fields.*
dab update --map is deprecated, next time use --fields.*
```
## Why?
Encourage the new syntax.
### Parameters
In `dab add` and `update`, this:
```
--source.params Dictionary of parameters and their values...
```
Have been replaced with:
```
--parameters.name Comma-separated list of parameter names for stored procedure.
--parameters.description Comma-separated list of parameter descriptions for stored procedure.
--parameters.required Comma-separated list of parameter required flags (true/false) for stored procedure.
--parameters.default Comma-separated list of parameter default values for stored procedure.
```
### Fields
In `dab update`, these:
```
--source.key-fields The field(s) to be used as primary keys.
-m, --map Specify mappings between database fields...
```
Have been replaced with:
```
--fields.name Name of the database column to expose as a field.
--fields.alias Alias for the field.
--fields.description Description for the field.
--fields.primary-key Set this field as a primary key.
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.