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 { DB } from "./constants";
|
||||
|
||||
export const databases = {
|
||||
export const databases = new Proxy(
|
||||
{
|
||||
[DB.MYSQL]: {
|
||||
name: "MySQL",
|
||||
label: DB.MYSQL,
|
||||
@ -46,4 +47,6 @@ export const databases = {
|
||||
description: i18n.t("generic_description"),
|
||||
hasTypes: true,
|
||||
},
|
||||
};
|
||||
},
|
||||
{ get: (target, prop) => (prop in target ? target[prop] : {}) },
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user