Azure / Azure/data-api-builder
[Enh]: For auto-config entities support `views`
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 370
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 8
Description
## 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"
```
Contributor guide
Assessment
This issue has not been assessed yet.