History row-expand + Batch exist check with backup/drop #14

Merged
haedong merged 2 commits from development_c into development 2026-07-24 15:20:44 +09:00
Owner

Summary

History

  • 좌우 분할 → 행 확장 패턴으로 변경
  • 행 클릭 → DDL 확장 (구문 하이라이트), 다시 클릭 → 접힘
  • diff 버튼 유지

Batch 일괄 생성

  • 실행 전 선택 테이블 존재 여부 일괄 확인
  • 존재 시 confirm: Drop+재생성 (백업 체크박스) / 신규만 생성 / 취소
  • 백업 ON → RENAME, 백업 OFF → DROP IF EXISTS
  • 완료 후 [새 파일 업로드] 버튼으로 UI 리셋

Refactor

  • _split_statements 중복 제거 → core/init.py 공통 함수
  • app.py 로컬 import json → 모듈 레벨
  • 의존 필드 UI 강조 (dep-active/dep-disabled)

Test plan

  • 이력 조회: 행 클릭 → DDL 확장/접힘
  • 일괄 생성: 존재 테이블 → Drop+재생성 확인
  • 일괄 생성: 완료 후 새 파일 업로드 가능
## Summary ### History - 좌우 분할 → 행 확장 패턴으로 변경 - 행 클릭 → DDL 확장 (구문 하이라이트), 다시 클릭 → 접힘 - diff 버튼 유지 ### Batch 일괄 생성 - 실행 전 선택 테이블 존재 여부 일괄 확인 - 존재 시 confirm: Drop+재생성 (백업 체크박스) / 신규만 생성 / 취소 - 백업 ON → RENAME, 백업 OFF → DROP IF EXISTS - 완료 후 [새 파일 업로드] 버튼으로 UI 리셋 ### Refactor - _split_statements 중복 제거 → core/__init__.py 공통 함수 - app.py 로컬 import json → 모듈 레벨 - 의존 필드 UI 강조 (dep-active/dep-disabled) ## Test plan - [ ] 이력 조회: 행 클릭 → DDL 확장/접힘 - [ ] 일괄 생성: 존재 테이블 → Drop+재생성 확인 - [ ] 일괄 생성: 완료 후 새 파일 업로드 가능
- Click history row → expand DDL below (same as batch table list)
- Click again or other row → collapse/switch
- Removed left-right split layout, single column list
- DDL shown with syntax highlight in expanded area
- diff button preserved on rows with previous versions
- Execute checks all selected tables for existence first
- If exists: confirm dialog with backup checkbox (same as single create)
  - Drop+재생성: backup(RENAME) or DROP IF EXISTS → CREATE
  - 신규만 생성: skip existing tables
  - 취소: abort all
- After completion: [새 파일 업로드] button to reset batch UI
- resetBatch() clears tables, schema, result area
haedong merged commit 9077e28dab into development 2026-07-24 15:20:44 +09:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
haedong/table_generator!14
No description provided.