mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
feat: add MotherDuck DB engine spec (#24934)
This commit is contained in:
@@ -202,6 +202,7 @@ export type DBReducerActionType =
|
||||
configuration_method: CONFIGURATION_METHOD;
|
||||
engine_information?: {};
|
||||
driver?: string;
|
||||
sqlalchemy_uri_placeholder?: string;
|
||||
};
|
||||
}
|
||||
| {
|
||||
@@ -946,8 +947,13 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
const selectedDbModel = availableDbs?.databases.filter(
|
||||
(db: DatabaseObject) => db.name === database_name,
|
||||
)[0];
|
||||
const { engine, parameters, engine_information, default_driver } =
|
||||
selectedDbModel;
|
||||
const {
|
||||
engine,
|
||||
parameters,
|
||||
engine_information,
|
||||
default_driver,
|
||||
sqlalchemy_uri_placeholder,
|
||||
} = selectedDbModel;
|
||||
const isDynamic = parameters !== undefined;
|
||||
setDB({
|
||||
type: ActionType.dbSelected,
|
||||
@@ -959,6 +965,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
: CONFIGURATION_METHOD.SQLALCHEMY_URI,
|
||||
engine_information,
|
||||
driver: default_driver,
|
||||
sqlalchemy_uri_placeholder,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user