액션 노드들 로직 구현

This commit is contained in:
kjs
2025-10-02 17:51:15 +09:00
parent 37e018b33c
commit 258bd80201
13 changed files with 4504 additions and 525 deletions

View File

@@ -1,4 +1,4 @@
import { ConnectionTestResult, TableInfo } from '../types/externalDbTypes';
import { ConnectionTestResult, TableInfo } from "../types/externalDbTypes";
export interface ConnectionConfig {
host: string;
@@ -15,13 +15,15 @@ export interface QueryResult {
rows: any[];
rowCount?: number;
fields?: any[];
affectedRows?: number; // MySQL/MariaDB용
length?: number; // 배열 형태로 반환되는 경우
}
export interface DatabaseConnector {
connect(): Promise<void>;
disconnect(): Promise<void>;
testConnection(): Promise<ConnectionTestResult>;
executeQuery(query: string): Promise<QueryResult>;
executeQuery(query: string, params?: any[]): Promise<QueryResult>; // params 추가
getTables(): Promise<TableInfo[]>;
getColumns(tableName: string): Promise<any[]>; // 특정 테이블의 컬럼 정보 조회
}
}