Files
sqlchat/types/connection.ts
2023-03-22 16:32:12 +08:00

19 lines
318 B
TypeScript

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;
}