mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-27 01:56:16 +08:00
26 lines
413 B
TypeScript
26 lines
413 B
TypeScript
import { Id } from "./";
|
|
|
|
export enum Engine {
|
|
MySQL = "MYSQL",
|
|
PostgreSQL = "POSTGRESQL",
|
|
}
|
|
|
|
interface SSLOptions {
|
|
ca?: string;
|
|
cert?: string;
|
|
key?: string;
|
|
}
|
|
|
|
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;
|
|
ssl?: SSLOptions;
|
|
}
|