Skip to content

Commit d2fde2c

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#60)
1 parent ebaba2d commit d2fde2c

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 82
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-89d98c96d6f0441614ec82ee050604faf290f145703bbc2538ad22697ff5a473.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-399721aa7320dd4c054617336d4503f88c99aee4a919c9ec5beddcef25d1bbbc.yml

src/asktable/resources/datasources/datasources.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def with_streaming_response(self) -> DatasourcesResourceWithStreamingResponse:
9494
def create(
9595
self,
9696
*,
97-
engine: Literal["mysql", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"],
97+
engine: Literal[
98+
"mysql", "mysql57", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"
99+
],
98100
async_process_meta: bool | NotGiven = NOT_GIVEN,
99101
value_index: bool | NotGiven = NOT_GIVEN,
100102
access_config: Optional[datasource_create_params.AccessConfig] | NotGiven = NOT_GIVEN,
@@ -428,7 +430,9 @@ def with_streaming_response(self) -> AsyncDatasourcesResourceWithStreamingRespon
428430
async def create(
429431
self,
430432
*,
431-
engine: Literal["mysql", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"],
433+
engine: Literal[
434+
"mysql", "mysql57", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"
435+
],
432436
async_process_meta: bool | NotGiven = NOT_GIVEN,
433437
value_index: bool | NotGiven = NOT_GIVEN,
434438
access_config: Optional[datasource_create_params.AccessConfig] | NotGiven = NOT_GIVEN,

src/asktable/types/datasource.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class Datasource(BaseModel):
4848
created_at: datetime
4949
"""创建时间"""
5050

51-
engine: Literal["mysql", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"]
51+
engine: Literal[
52+
"mysql", "mysql57", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"
53+
]
5254
"""数据源引擎"""
5355

5456
meta_status: Literal["processing", "failed", "success", "unprocessed"]

src/asktable/types/datasource_create_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
class DatasourceCreateParams(TypedDict, total=False):
1212
engine: Required[
13-
Literal["mysql", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"]
13+
Literal[
14+
"mysql", "mysql57", "tidb", "postgresql", "oceanbase", "clickhouse", "csv", "excel", "starrocks", "hive"
15+
]
1416
]
1517
"""数据源引擎"""
1618

0 commit comments

Comments
 (0)