mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
added explore database for ctas/cvas (#10174)
Co-authored-by: Jason Davis <@dropbox.com>
This commit is contained in:
@@ -195,6 +195,10 @@ class Database(
|
||||
|
||||
return bool(extra.get("allows_virtual_table_explore", True))
|
||||
|
||||
@property
|
||||
def explore_database_id(self) -> int:
|
||||
return self.get_extra().get("explore_database_id", self.id)
|
||||
|
||||
@property
|
||||
def data(self) -> Dict[str, Any]:
|
||||
return {
|
||||
@@ -205,6 +209,7 @@ class Database(
|
||||
"allows_subquery": self.allows_subquery,
|
||||
"allows_cost_estimate": self.allows_cost_estimate,
|
||||
"allows_virtual_table_explore": self.allows_virtual_table_explore,
|
||||
"explore_database_id": self.explore_database_id,
|
||||
}
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user