액션 노드들 로직 구현
This commit is contained in:
@@ -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[]>; // 특정 테이블의 컬럼 정보 조회
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user