-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatasource.py
More file actions
72 lines (55 loc) · 1.42 KB
/
datasource.py
File metadata and controls
72 lines (55 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["Datasource"]
class Datasource(BaseModel):
id: str
"""数据源 ID"""
created_at: datetime
"""创建时间"""
engine: Literal[
"mysql",
"tidb",
"postgresql",
"oceanbase",
"clickhouse",
"excel",
"starrocks",
"hive",
"oracle",
"polardbmysql",
"polardbpg",
"dameng",
"adbmysql",
"adbpostgres",
"xugu",
"doris",
"greenplum",
"selectdb",
"databend",
"sqlserver",
"mogdb",
]
"""数据源引擎"""
meta_status: Literal["processing", "failed", "success", "unprocessed"]
"""元数据处理状态"""
modified_at: datetime
"""修改时间"""
project_id: str
"""项目 ID"""
desc: Optional[str] = None
"""数据源描述"""
field_count: Optional[int] = None
"""字段数量"""
meta_error: Optional[str] = None
"""元数据处理错误"""
name: Optional[str] = None
"""数据源的名称"""
sample_questions: Optional[str] = None
"""示例问题"""
schema_count: Optional[int] = None
"""库数量"""
table_count: Optional[int] = None
"""表数量"""