Azure / Azure/data-api-builder
[Enh]: For auto-config entities support `views`
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 17h
- PR unite (30g)
- 8
Descrizione
## What?
Support views as well as tables in autoentities.
> [!NOTE]
> This feature supports only read-only views.
## Why?
Because many customers, especial with MCP, prefer views.
## How?
This is tricky because views do not have keys, which we currently require. The only viable solution without adding significant complexity is to include views as read-only entities. However, we currently don't have this concept. But it is coming!
* #2791
This prerequisite task introduces read-only views and enables this feature.
### Configuration
```json
{
"autoentities": {
"default": {
"source-type": [ "view" ] // default: [ table ]
}
}
}
```
> An autoentity can include more than one type.
### Command line
```
dab auto-config --source-type "table,view"
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la configurazione di autoentities e il comando `dab auto-config` descritti nell’issue, poi leggi l’issue prerequisito #2791 sulle viste di sola lettura. Il lavoro è completo quando autoentities accetta valori di `source-type` che includono `view` e il comando supporta `--source-type "table,view"` per le viste di sola lettura.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- backend-api-design, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100