Skip to content

Commit 8fda6da

Browse files
feat(api): api update
1 parent eef43f5 commit 8fda6da

File tree

6 files changed

+42
-2
lines changed

6 files changed

+42
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 96
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-4541926153d34a6396c3c7aa1699d8ccd712436d7cc53b992d82cc826bd34957.yml
3-
openapi_spec_hash: 387458b128396a8efa79b080be37ebe3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-29394e9288138b62c46bfe93fdef8ecacf70e8e30689814c28f8d9298e5687f9.yml
3+
openapi_spec_hash: 8aa3b1782f1fead9b4b724205fb28e12
44
config_hash: a572ab842ea60ce13f1d1a1358440cbe

src/asktable/resources/datasources/datasources.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ def create(
108108
"adbmysql",
109109
"adbpostgres",
110110
"xugu",
111+
"doris",
112+
"greenplum",
113+
"selectdb",
114+
"databend",
115+
"sqlserver",
111116
],
112117
access_config: Optional[datasource_create_params.AccessConfig] | NotGiven = NOT_GIVEN,
113118
name: Optional[str] | NotGiven = NOT_GIVEN,
@@ -208,6 +213,11 @@ def update(
208213
"adbmysql",
209214
"adbpostgres",
210215
"xugu",
216+
"doris",
217+
"greenplum",
218+
"selectdb",
219+
"databend",
220+
"sqlserver",
211221
]
212222
]
213223
| NotGiven = NOT_GIVEN,
@@ -590,6 +600,11 @@ async def create(
590600
"adbmysql",
591601
"adbpostgres",
592602
"xugu",
603+
"doris",
604+
"greenplum",
605+
"selectdb",
606+
"databend",
607+
"sqlserver",
593608
],
594609
access_config: Optional[datasource_create_params.AccessConfig] | NotGiven = NOT_GIVEN,
595610
name: Optional[str] | NotGiven = NOT_GIVEN,
@@ -690,6 +705,11 @@ async def update(
690705
"adbmysql",
691706
"adbpostgres",
692707
"xugu",
708+
"doris",
709+
"greenplum",
710+
"selectdb",
711+
"databend",
712+
"sqlserver",
693713
]
694714
]
695715
| NotGiven = NOT_GIVEN,

src/asktable/types/datasource.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ class Datasource(BaseModel):
3232
"adbmysql",
3333
"adbpostgres",
3434
"xugu",
35+
"doris",
36+
"greenplum",
37+
"selectdb",
38+
"databend",
39+
"sqlserver",
3540
]
3641
"""数据源引擎"""
3742

src/asktable/types/datasource_create_params.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ class DatasourceCreateParams(TypedDict, total=False):
3131
"adbmysql",
3232
"adbpostgres",
3333
"xugu",
34+
"doris",
35+
"greenplum",
36+
"selectdb",
37+
"databend",
38+
"sqlserver",
3439
]
3540
]
3641
"""数据源引擎"""

src/asktable/types/datasource_retrieve_response.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ class DatasourceRetrieveResponse(BaseModel):
7777
"adbmysql",
7878
"adbpostgres",
7979
"xugu",
80+
"doris",
81+
"greenplum",
82+
"selectdb",
83+
"databend",
84+
"sqlserver",
8085
]
8186
"""数据源引擎"""
8287

src/asktable/types/datasource_update_params.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ class DatasourceUpdateParams(TypedDict, total=False):
3737
"adbmysql",
3838
"adbpostgres",
3939
"xugu",
40+
"doris",
41+
"greenplum",
42+
"selectdb",
43+
"databend",
44+
"sqlserver",
4045
]
4146
]
4247
"""数据源引擎"""

0 commit comments

Comments
 (0)