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

19 lines
319 B
TypeScript

import { Id } from "./";
export 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;
}