Make databases a proxy
This commit is contained in:
parent
c84990ca6d
commit
52455a75d0
@ -6,7 +6,8 @@ import mssqlImage from "../assets/mssql-icon.png";
|
|||||||
import i18n from "../i18n/i18n";
|
import i18n from "../i18n/i18n";
|
||||||
import { DB } from "./constants";
|
import { DB } from "./constants";
|
||||||
|
|
||||||
export const databases = {
|
export const databases = new Proxy(
|
||||||
|
{
|
||||||
[DB.MYSQL]: {
|
[DB.MYSQL]: {
|
||||||
name: "MySQL",
|
name: "MySQL",
|
||||||
label: DB.MYSQL,
|
label: DB.MYSQL,
|
||||||
@ -46,4 +47,6 @@ export const databases = {
|
|||||||
description: i18n.t("generic_description"),
|
description: i18n.t("generic_description"),
|
||||||
hasTypes: true,
|
hasTypes: true,
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
|
{ get: (target, prop) => (prop in target ? target[prop] : {}) },
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user