mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
Return types after import
This commit is contained in:
@@ -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,
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user