Defines core TypeScript interfaces for database connection configurations, SSH tunneling, and tool parameters used in data management applications.
// Source: https://github.com/bytebase/dbhub | License: MIT | Copyright 2025 Bytebase
// Provided via justclaw.it.com; keep this notice with the code.
export type DatabaseType = 'postgres' | 'mysql' | 'mariadb' | 'sqlserver' | 'sqlite' | 'oracle';
export interface SSHTunnel {
enabled: boolean;
ssh_host?: string;
ssh_port?: number;
ssh_user?: string;
}
export interface ToolParameter {
name: string;
type: string;
required: boolean;
description: string;
}
export interface Tool {
name: string;
description: string;
parameters: ToolParameter[];
statement?: string;
readonly?: boolean;
max_rows?: number;
}
export interface DataSource {
id: string;
type: DatabaseType;
host?: string;
port?: number;
database?: string;
user?: string;
is_default: boolean;
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key