Azure / Azure/data-api-builder

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

オープン
#3,225 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
2.x auto-config
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

## 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"
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue で説明されている autoentities の設定と `dab auto-config` コマンドから始め、次に読み取り専用ビューについての前提 issue #2791 を読んでください。autoentities が `view` を含む `source-type` の値を受け付け、コマンドが読み取り専用ビュー向けに `--source-type "table,view"` をサポートすれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
backend-api-design, cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。