You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,29 @@
1
1
# SQL2Excel Version History
2
2
3
+
## v2.1.5-beta(v1.3.5) - DynamicVar DB Routing & XML Validation Update (2025-11-15)
4
+
5
+
### ✨ New/Changed
6
+
- Dynamic variable DB routing
7
+
- XML `dynamicVar` supports `db` (alias of `database`) attribute
8
+
- Each dynamic variable is executed using the adapter for its specified DB key
9
+
- Fallback to default DB when not specified
10
+
- XML validation update
11
+
-`queryDef` now allows `db` attribute during structure validation (for documentation/future use). Execution DB remains sheet-level `db` or global default
12
+
13
+
### 🔧 Code Changes
14
+
-`src/query-parser.js`
15
+
- Allow `db` attribute on `dynamicVar`; parse `database || db`
16
+
- Allow `db` attribute on `queryDef` in validation
17
+
-`src/variable-processor.js`
18
+
- Execute dynamic variables on their own DB adapters (`dbAdapters[targetDbKey]`)
19
+
-`src/index.js`
20
+
- Pass `dbAdapters` and `defaultDbKey` to dynamic variable processor
Copy file name to clipboardExpand all lines: README.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,14 @@
2
2
3
3
A Node.js-based tool for generating Excel files from SQL query results.
4
4
5
+
## v2.1.5-beta(v1.3.5) Highlights
6
+
7
+
- DynamicVar DB routing
8
+
-`dynamicVar` now supports `db` (alias of `database`) attribute in XML.
9
+
- Each dynamic variable executes on its specified DB adapter (falls back to default DB when omitted).
10
+
- XML validation update
11
+
-`queryDef` now allows `db` attribute in XML schema validation. Note: current execution still uses sheet-level `db` or global default; `queryDef.db` is for future use/documentation.
- Attributes supported on `dynamicVar`: `name`, `description`, `type`, `db`, `database` (`db` is an alias). When both are present, `database` takes precedence.
123
+
-`queryDef` accepts `db` for validation purposes; execution DB is determined by sheet's `db` or the global default DB.
Copy file name to clipboardExpand all lines: USER_MANUAL.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,14 @@
19
19
20
20
SQL2Excel is a powerful Node.js-based tool for generating Excel files from SQL query results with advanced styling, template support, and standalone executable distribution.
21
21
22
+
### What's New (v2.1.5-beta, v1.3.5)
23
+
24
+
- DynamicVar DB routing
25
+
- XML `dynamicVar` supports `db` (alias of `database`) attribute
26
+
- Each dynamic variable runs on its specified DB adapter; falls back to default DB if omitted
27
+
- XML validation update
28
+
-`queryDef` accepts `db` in schema validation (execution DB is still determined by sheet `db` or global default)
29
+
22
30
### What's New (v2.1.4-beta, v1.3.4)
23
31
24
32
- Adapter-level DB connection test queries
@@ -527,15 +535,15 @@ The tool supports advanced dynamic variables that can extract data at runtime an
SELECT ProductID, UnitPrice FROM Products WHERE Discontinued = 0
541
549
]]>
@@ -559,6 +567,10 @@ WHERE CustomerID IN (${customerData.CustomerID})
559
567
4.**Performance**: Variables are executed once and cached for the entire export
560
568
5.**Debug Mode**: Enable with `DEBUG_VARIABLES=true` for detailed variable substitution
561
569
570
+
Notes:
571
+
- Supported `dynamicVar` attributes: `name`, `description`, `type`, `db`, `database` (`db` is an alias). If both are present, `database` takes precedence.
572
+
-`queryDef` accepts `db` in XML validation only; runtime execution DB is selected from the sheet's `db` or the global default DB.
573
+
562
574
## 🕒 Custom Date/Time Variables
563
575
564
576
SQL2Excel provides a powerful custom date variable system that allows you to display current date and time in any format you want. These variables can be used in queries, file names, and any text content.
0 commit comments