Skip to content

Commit 831701f

Browse files
committed
Update document for v1.3.0
1 parent 63ad126 commit 831701f

File tree

7 files changed

+139
-15
lines changed

7 files changed

+139
-15
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# SQL2Excel Version History
22

3+
## v1.3.0 - Per-sheet Export for CSV/TXT and Routing Rules (2025-10-29)
4+
5+
### ✨ New/Changed
6+
- Export routing based on output extension
7+
- `.xlsx` / `.xls` → Generate a single Excel workbook (existing behavior)
8+
- `.csv` → Generate per-sheet CSV files
9+
- All other extensions (e.g., `.txt`, `.log`, `.data`, `.sql`, etc.) → Generate per-sheet TXT files (tab-delimited)
10+
- Output directory naming
11+
- If per-sheet export is used, files are written under `<output_basename>_<ext>` (no dot)
12+
- Example: `output="d:/temp/report.csv"` → directory `d:/temp/report_csv/`
13+
- Per-file naming
14+
- Each sheet becomes a separate file named after the sheet's original name (`originalName`) with filesystem sanitization
15+
- No 31-character truncation applies to CSV/TXT outputs (Excel-only limit)
16+
- Max filename length capped at 100 characters; invalid characters replaced with `_`
17+
- Data formats
18+
- CSV: comma-delimited, UTF-8 with BOM, headers included, CRLF line endings
19+
- TXT: tab-delimited, UTF-8 with BOM, headers included, CRLF line endings
20+
21+
### 🔧 Code Changes
22+
- index.js: Route by extension; only `.xlsx`/`.xls` use workbook generation; `.csv` uses per-sheet CSV; others per-sheet TXT
23+
- excel-generator.js: Implement per-sheet writer, directory naming `<basename>_<ext>`, filename from `originalName`, formatting defaults
24+
25+
### 📝 Documentation
26+
- README/README_KR: Updated highlights to v1.3.0 with per-sheet export rules and examples
27+
- USER_MANUAL/USER_MANUAL_KR: Added section describing routing, directory/filename rules, and defaults
28+
- CHANGELOG/CHANGELOG_KR: Added v1.3.0 entry
29+
330
## v1.2.11 - TOC Original Name & Sheet Name Length Warning (2025-10-29)
431

532
### ✨ New/Changed

CHANGELOG_KR.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# SQL2Excel 버전 히스토리
22

3+
## v1.3.0 - CSV/TXT 시트별 내보내기 및 라우팅 규칙 (2025-10-29)
4+
5+
### ✨ 변경 사항
6+
- 출력 확장자에 따른 라우팅
7+
- `.xlsx` / `.xls` → 단일 엑셀 통합문서 생성 (기존 동작)
8+
- `.csv` → 시트별 CSV 파일 생성
9+
- 그 외 모든 확장자(예: `.txt`, `.log`, `.data`, `.sql` 등) → 시트별 TXT 파일 생성 (탭 구분)
10+
- 출력 디렉토리 명명 규칙
11+
- 시트별 내보내기 시 `<출력파일베이스>_<확장자>` (점 제외) 디렉토리 하위에 파일 생성
12+
- 예: `output="d:/temp/report.csv"` → 디렉토리 `d:/temp/report_csv/`
13+
- 개별 파일명 규칙
14+
- 각 시트는 원본 시트명(`originalName`)을 파일명으로 사용 (파일시스템 안전화 적용)
15+
- CSV/TXT 출력에는 31자 제한(엑셀 전용 제한) 미적용
16+
- 파일명 최대 100자, 금지 문자는 `_`로 치환
17+
- 데이터 형식 기본값
18+
- CSV: 콤마 구분, UTF-8 BOM, 헤더 포함, CRLF 줄바꿈
19+
- TXT: 탭 구분, UTF-8 BOM, 헤더 포함, CRLF 줄바꿈
20+
21+
### 🔧 코드 변경
22+
- index.js: 확장자 기반 라우팅 — `.xlsx`/`.xls`만 통합문서 생성, `.csv`는 시트별 CSV, 기타는 시트별 TXT
23+
- excel-generator.js: 시트별 파일 작성 로직 추가, 디렉토리/파일명 규칙 반영, 출력 포맷 기본값 적용
24+
25+
### 📝 문서
26+
- README/README_KR: v1.3.0 하이라이트 및 시트별 내보내기 규칙/예시 반영
27+
- USER_MANUAL/USER_MANUAL_KR: 라우팅, 디렉토리/파일명 규칙, 기본값 섹션 추가
28+
- CHANGELOG/CHANGELOG_KR: v1.3.0 항목 추가
29+
330
## v1.2.11 - TOC 원본 시트명 컬럼 및 시트명 길이 경고 (2025-10-29)
431

532
### ✨ 변경 사항

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,24 @@ A Node.js-based tool for generating Excel files from SQL query results.
2525
- 📋 **SQL Query Formatting**: Preserve original SQL formatting with line breaks in Table of Contents
2626
- 🔧 **Input Validation**: Automatic whitespace trimming for file path inputs
2727

28-
## v1.2.11 Highlights
29-
30-
- **Validation Warning Change**: Sheet names longer than 31 characters now produce a warning (not an error). The warning also notes that Excel may truncate the sheet name.
31-
- **TOC Update**: The Table of Contents now includes an "Original Name" column to display the originally defined sheet name (useful when the tab name is truncated by Excel).
28+
## v1.3.0 Highlights
29+
30+
- **Per-sheet export routing by extension**
31+
- `.xlsx` / `.xls` → Generate a single Excel workbook (existing behavior)
32+
- `.csv` → Generate per-sheet CSV files
33+
- All other extensions (e.g., `.txt`, `.log`, `.data`, `.sql`, etc.) → Generate per-sheet TXT files (tab-delimited)
34+
- **Directory and filename rules for per-sheet export**
35+
- Output directory: `<output_basename>_<ext>` (no dot). Example: `output="d:/temp/report.csv"``d:/temp/report_csv/`
36+
- Each sheet becomes a separate file named after the sheet's `originalName`
37+
- No 31-character truncation for CSV/TXT (Excel-only limit). Filenames sanitized and capped at 100 chars
38+
- **Format defaults**
39+
- CSV: comma, UTF-8 with BOM, headers, CRLF
40+
- TXT: tab, UTF-8 with BOM, headers, CRLF
41+
42+
### Previously in v1.2.11
43+
44+
- Validation warning for sheet names > 31 chars; note about Excel truncation
45+
- TOC: Added "Original Name" column; removed note tooltip
3246

3347
### Previously in v1.2.10
3448

README_KR.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,24 @@ SQL 쿼리 결과를 엑셀 파일로 생성하는 Node.js 기반 도구입니
2525
- 📋 **SQL 쿼리 포맷팅**: 목차에서 줄바꿈을 포함한 원본 SQL 포맷 유지
2626
- 🔧 **입력 유효성 검증**: 파일 경로 입력에 대한 자동 공백 제거
2727

28-
## v1.2.11 하이라이트
29-
30-
- **검증 경고 변경**: 시트명이 31자를 초과해도 이제 오류가 아닌 경고로 처리합니다. 경고에는 엑셀에서 시트명이 잘릴 수 있다는 안내가 포함됩니다.
31-
- **목차(TOC) 업데이트**: "Original Name" 컬럼이 추가되어, 엑셀 탭명이 잘린 경우에도 원래 정의된 시트명을 별도 컬럼으로 확인할 수 있습니다.
28+
## v1.3.0 하이라이트
29+
30+
- **확장자 기반 시트별 내보내기 라우팅**
31+
- `.xlsx` / `.xls` → 단일 엑셀 통합문서 생성 (기존 동작)
32+
- `.csv` → 시트별 CSV 파일 생성
33+
- 그 외 모든 확장자(예: `.txt`, `.log`, `.data`, `.sql` 등) → 시트별 TXT 파일 생성 (탭 구분)
34+
- **시트별 내보내기 디렉토리/파일명 규칙**
35+
- 출력 디렉토리: `<출력파일베이스>_<확장자>` (점 제외). 예: `output="d:/temp/report.csv"``d:/temp/report_csv/`
36+
- 각 시트는 `originalName`(원본 시트명)으로 파일 생성
37+
- CSV/TXT는 31자 제한 없음(엑셀 전용 제한). 파일명은 안전화 및 최대 100자 제한
38+
- **포맷 기본값**
39+
- CSV: 콤마, UTF-8 BOM, 헤더 포함, CRLF
40+
- TXT: 탭, UTF-8 BOM, 헤더 포함, CRLF
41+
42+
### 이전 버전(v1.2.11)
43+
44+
- 시트명 31자 초과 경고 처리 및 엑셀에서 잘릴 수 있음 안내
45+
- TOC: "Original Name" 컬럼 추가, Note(툴팁) 제거
3246

3347
### 이전 버전(v1.2.10)
3448

USER_MANUAL.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,21 @@ SQL2Excel is a powerful Node.js-based tool for generating Excel files from SQL q
4242
- 📋 **SQL Query Formatting**: Preserve original SQL formatting with line breaks in Table of Contents
4343
- 🔧 **Input Validation**: Automatic whitespace trimming for file path inputs
4444

45-
### What's New (v1.2.11)
45+
### What's New (v1.3.0)
4646

47-
- Validation: Sheet names longer than 31 characters now trigger a warning (no failure). The warning also notes that Excel may truncate the sheet name.
48-
- TOC: Added an "Original Name" column to display the originally defined sheet name. Removed tooltip note; information is shown in the column.
47+
- Per-sheet export routing by extension
48+
- `.xlsx` / `.xls` → Generate a single Excel workbook (existing behavior)
49+
- `.csv` → Generate per-sheet CSV files
50+
- All other extensions (e.g., `.txt`, `.log`, `.data`, `.sql`, etc.) → Generate per-sheet TXT files (tab-delimited)
51+
- Directory and filename rules (per-sheet export)
52+
- Output directory: `<output_basename>_<ext>` (no dot). Example: `output="d:/temp/report.csv"``d:/temp/report_csv/`
53+
- Each sheet becomes a separate file named after the sheet's `originalName`
54+
- No 31-character truncation for CSV/TXT (Excel-only limit). Filenames sanitized and capped at 100 chars
55+
56+
Previously in v1.2.11
57+
58+
- Validation warning for sheet names > 31 chars; note about Excel truncation
59+
- TOC: Added "Original Name" column; removed note tooltip
4960

5061
## 🛠️ Installation and Setup
5162

@@ -112,6 +123,16 @@ Create `config/dbinfo.json` file:
112123
}
113124
```
114125

126+
### Per-sheet export (CSV/TXT)
127+
128+
- Routing by `excel.output` extension
129+
- `.xlsx`/`.xls` → Single Excel workbook
130+
- `.csv` → Per-sheet CSV
131+
- Others → Per-sheet TXT (tab-delimited)
132+
- Output directory and filenames
133+
- Files are written under `<output_basename>_<ext>` (no dot)
134+
- Each file name is the sheet `originalName` (sanitized, max 100 chars). No 31-char limit (Excel-only)
135+
115136
## 🚀 Basic Usage
116137

117138
### Language Settings

USER_MANUAL_KR.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,21 @@ SQL2Excel은 고급 스타일링, 템플릿 지원, 독립 실행 파일 배포
4242
- 📋 **SQL 쿼리 포맷팅**: 목차에서 줄바꿈을 포함한 원본 SQL 포맷 유지
4343
- 🔧 **입력 유효성 검증**: 파일 경로 입력에 대한 자동 공백 제거
4444

45-
### What's New (v1.2.11)
45+
### What's New (v1.3.0)
4646

47-
- 검증: 시트명이 31자를 초과해도 이제 오류가 아닌 경고로 처리합니다. 경고에는 엑셀에서 시트명이 잘릴 수 있다는 안내가 포함됩니다.
48-
- 목차(TOC): 원래 정의된 시트명을 표시하는 "Original Name" 컬럼이 추가되었습니다. 기존의 Note(툴팁) 표시는 제거되었으며, 정보는 컬럼으로 표시됩니다.
47+
- 확장자 기반 시트별 내보내기 라우팅
48+
- `.xlsx` / `.xls` → 단일 엑셀 통합문서 생성 (기존 동작)
49+
- `.csv` → 시트별 CSV 파일 생성
50+
- 그 외 모든 확장자(예: `.txt`, `.log`, `.data`, `.sql` 등) → 시트별 TXT 파일 생성 (탭 구분)
51+
- 디렉토리/파일명 규칙 (시트별 내보내기)
52+
- 출력 디렉토리: `<출력파일베이스>_<확장자>` (점 제외). 예: `output="d:/temp/report.csv"``d:/temp/report_csv/`
53+
- 각 시트는 `originalName`(원본 시트명)으로 파일 생성
54+
- CSV/TXT에는 31자 제한 없음(엑셀 전용 제한). 파일명은 안전화 및 최대 100자 제한
55+
56+
이전 버전(v1.2.11)
57+
58+
- 시트명 31자 초과 경고 처리 및 엑셀에서 잘릴 수 있음 안내
59+
- TOC: "Original Name" 컬럼 추가, Note(툴팁) 제거
4960

5061
## 🛠️ 설치 및 설정
5162

@@ -367,6 +378,16 @@ sql2excel.exe --mode=help
367378
}
368379
```
369380

381+
### 시트별 내보내기 (CSV/TXT)
382+
383+
- `excel.output` 확장자에 따른 라우팅
384+
- `.xlsx`/`.xls` → 단일 엑셀 통합문서
385+
- `.csv` → 시트별 CSV
386+
- 그 외 → 시트별 TXT (탭 구분)
387+
- 출력 디렉토리 및 파일명
388+
- 출력은 `<출력파일베이스>_<확장자>` (점 제외) 하위에 생성
389+
- 파일명은 시트 `originalName` 사용 (파일시스템 안전화, 최대 100자). 31자 제한 없음(엑셀 전용)
390+
370391
## 🎨 템플릿 스타일 시스템
371392

372393
SQL2Excel은 사전 정의된 엑셀 스타일링 템플릿을 포함한 포괄적인 템플릿 스타일 시스템을 제공합니다.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sql2excel",
3-
"version": "1.2.11",
3+
"version": "1.3.0",
44
"description": "SQL 쿼리 결과를 엑셀 파일로 저장하는 도구 (시트별 쿼리, 변수, XML/JSON 지원)",
55
"main": "app.js",
66
"scripts": {

0 commit comments

Comments
 (0)