Azure / Azure/data-api-builder

[Enh]: For auto-config entities support `views`

Open
#3,225 0 comments 0 reactions 0 assignees View on GitHub
2.x auto-config
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.