Azure / Azure/data-api-builder
[Enh]: For auto-config entities support `views`
- Ngôn ngữ chính
- C#
- Star
- 1.5k
- Fork
- 370
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 9
Mô tả
## 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"
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với cấu hình autoentities và lệnh `dab auto-config` được mô tả trong issue, sau đó đọc issue điều kiện tiên quyết #2791 về các view chỉ đọc. Công việc hoàn tất khi autoentities chấp nhận các giá trị `source-type` bao gồm `view` và lệnh hỗ trợ `--source-type "table,view"` cho các view chỉ đọc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- backend-api-design, cli
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100