mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
add new enums for datasource types (#20015)
This commit is contained in:
parent
bba40d7856
commit
1f0daa9a5a
@ -174,8 +174,16 @@ class GenericDataType(IntEnum):
|
||||
# ROW = 7
|
||||
|
||||
|
||||
class DatasourceType(Enum):
|
||||
SQLATABLE = "sqlatable"
|
||||
TABLE = "table"
|
||||
DATASET = "dataset"
|
||||
QUERY = "query"
|
||||
SAVEDQUERY = "saved_query"
|
||||
|
||||
|
||||
class DatasourceDict(TypedDict):
|
||||
type: str
|
||||
type: str # todo(hugh): update this to be DatasourceType
|
||||
id: int
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user