Skip to content

Commit f8709cd

Browse files
committed
Added oracle to support databases
1 parent 7ee6ea4 commit f8709cd

6 files changed

Lines changed: 1142 additions & 21 deletions

File tree

config/dbinfo.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@
7878
},
7979
"oracleDB": {
8080
"type": "oracle",
81-
"user": "system",
82-
"password": "oracle",
81+
"user": "c##scott",
82+
"password": "tiger",
8383
"server": "localhost",
8484
"port": 1521,
85-
"serviceName": "XEPDB1",
85+
"serviceName": "xe",
8686
"options": {
8787
"poolMin": 0,
8888
"poolMax": 4,

package-lock.json

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

queries/queries-sample-orders.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"excel": {
3-
"db": "sampleDB",
3+
"db": "oracleDB",
44
"output": "output/sales_summary_2024.xlsx",
55
"maxRows": 1500,
66
"header": {

queries/queries-sample-orders.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<queries>
2-
<excel db="sampleDB" output="d:/temp/sales_summary_${DATE.KST:yyyyMMddhhmmss}.xlsx" maxRows="20" style="modern">
2+
<excel db="oracleDB" output="d:/temp/sales_summary_${DATE.KST:yyyyMMddhhmmss}.xlsx" maxRows="20" style="modern">
33
<!-- Style template ID (default: default) -->
44
<!-- Available templates: default, modern, dark, colorful, minimal, business, premium -->
55
<!-- Can be overridden with individual style attributes if needed -->
@@ -22,15 +22,15 @@
2222
PaymentStatus as PaymentStatus,
2323
FORMAT(TotalAmount, 'N0') as TotalAmount,
2424
PaymentMethod as PaymentMethod
25-
FROM SampleDB.dbo.Orders
25+
FROM Orders
2626
WHERE OrderDate >= '${startDate}' AND OrderDate <= '${endDate}'
2727
ORDER BY OrderDate DESC
2828
]]>
2929
</sheet>
3030
<sheet name="Customer_List" use="true" aggregateColumn="Region" style="dark">
3131
<![CDATA[
3232
SELECT *
33-
FROM SampleDB.dbo.Customers
33+
FROM Customers
3434
]]>
3535
</sheet>
3636
<sheet name="Customer_Details_Regional_Statistics_Summary" use="true">
@@ -42,37 +42,37 @@
4242
FORMAT(od.UnitPrice, 'N0') as UnitPrice,
4343
od.Quantity as Quantity,
4444
FORMAT(od.LineTotal, 'N0') as LineTotal
45-
FROM SampleDB.dbo.Orders o
46-
INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID
47-
INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID
45+
FROM Orders o
46+
INNER JOIN Customers c ON o.CustomerID = c.CustomerID
47+
INNER JOIN OrderDetails od ON o.OrderID = od.OrderID
4848
WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}'
4949
ORDER BY o.OrderDate DESC
5050
]]>
5151
</sheet>
5252
<sheet name="Wildcard_Customer" use="true" exceptColumns="IsActive,CreatedDate,LastUpdated">
5353
<![CDATA[
5454
SELECT c.*
55-
FROM SampleDB.dbo.Orders o
56-
INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID
57-
INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID
55+
FROM Orders o
56+
INNER JOIN Customers c ON o.CustomerID = c.CustomerID
57+
INNER JOIN OrderDetails od ON o.OrderID = od.OrderID
5858
WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}'
5959
ORDER BY o.OrderDate DESC
6060
]]>
6161
</sheet>
6262
<sheet name="Wildcard_Order" use="true" exceptColumns="OrderDate,RequiredDate,ShippedDate,OrderStatus,ShipVia,Freight,ShipName,ShipAddress,ShipCity">
6363
<![CDATA[
6464
SELECT o.*
65-
FROM SampleDB.dbo.Orders o
66-
INNER JOIN SampleDB.dbo.Customers c ON o.CustomerID = c.CustomerID
67-
INNER JOIN SampleDB.dbo.OrderDetails od ON o.OrderID = od.OrderID
65+
FROM Orders o
66+
INNER JOIN Customers c ON o.CustomerID = c.CustomerID
67+
INNER JOIN OrderDetails od ON o.OrderID = od.OrderID
6868
WHERE o.OrderDate >= '${startDate}' AND o.OrderDate <= '${endDate}'
6969
ORDER BY o.OrderDate DESC
7070
]]>
7171
</sheet>
7272
<sheet name="Orders_By_Status" use="true" aggregateColumn="OrderStatus" exceptColumns="OrderDate,RequiredDate,ShippedDate">
7373
<![CDATA[
7474
SELECT *
75-
FROM SampleDB.dbo.Orders
75+
FROM Orders
7676
WHERE OrderDate >= '${startDate}'
7777
AND OrderDate <= '${endDate}'
7878
AND OrderStatus IN (${statusList})
@@ -82,8 +82,8 @@
8282
<sheet name="Products_By_Category" use="true" aggregateColumn="CategoryName" exceptColumns="OrderDate,RequiredDate,ShippedDate">
8383
<![CDATA[
8484
SELECT P.*
85-
FROM SampleDB.dbo.Products p
86-
INNER JOIN SampleDB.dbo.Categories c ON p.CategoryID = c.CategoryID
85+
FROM Products p
86+
INNER JOIN Categories c ON p.CategoryID = c.CategoryID
8787
WHERE p.CategoryID IN (${categoryIds})
8888
AND p.Discontinued = 0
8989
ORDER BY c.CategoryName, p.ProductName

0 commit comments

Comments
 (0)