Return types after import

This commit is contained in:
1ilit
2024-06-27 11:12:09 +03:00
parent 9e2684e7a9
commit d79b0c205d
5 changed files with 24 additions and 13 deletions

View File

@@ -6,36 +6,42 @@ import mssqlImage from "../assets/mssql-icon.png";
import i18n from "../i18n/i18n";
import { DB } from "./constants";
export const databases = [
{
export const databases = {
[DB.MYSQL]: {
name: "MySQL",
label: DB.MYSQL,
image: mysqlImage,
hasTypes: false,
},
{
[DB.POSTGRES]: {
name: "PostgreSQL",
label: DB.POSTGRES,
image: postgresImage,
hasTypes: true,
},
{
[DB.SQLITE]: {
name: "SQLite",
label: DB.SQLITE,
image: sqliteImage,
hasTypes: false,
},
{
[DB.MARIADB]: {
name: "MariaDB",
label: DB.MARIADB,
image: mariadbImage,
hasTypes: false,
},
{
[DB.MSSQL]: {
name: "MSSQL",
label: DB.MSSQL,
image: mssqlImage,
hasTypes: false,
},
{
[DB.GENERIC]: {
name: i18n.t("generic"),
label: DB.GENERIC,
image: null,
description: i18n.t("generic_description"),
hasTypes: true,
},
];
};