feat: implement connection and database types

This commit is contained in:
steven
2023-03-22 16:32:12 +08:00
parent 90a6fec65c
commit 5dc3c05a2a
11 changed files with 58 additions and 17 deletions

18
types/connection.ts Normal file
View File

@ -0,0 +1,18 @@
import { Id } from "./common";
enum Engine {
MySQL = "MYSQL",
PostgreSQL = "POSTGRESQL",
}
export interface Connection {
id: Id;
title: string;
engineType: Engine;
host: string;
port: string;
username: string;
password: string;
// database is only required for PostgreSQL.
database?: string;
}