mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-28 17:53:21 +08:00
feat: implement connection and database types
This commit is contained in:
18
types/connection.ts
Normal file
18
types/connection.ts
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user