Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfoshee/dashreport.specs
CLI to generate HTML reports from SQL queries.
https://github.com/jfoshee/dashreport.specs
Last synced: about 2 months ago
JSON representation
CLI to generate HTML reports from SQL queries.
- Host: GitHub
- URL: https://github.com/jfoshee/dashreport.specs
- Owner: jfoshee
- Created: 2024-07-21T22:19:30.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T15:43:18.000Z (6 months ago)
- Last Synced: 2024-07-23T00:52:28.886Z (6 months ago)
- Language: C#
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DashReport
CLI to generate HTML reports from SQL queries.
## Natural Language Specification
### Feature: Generate HTML Report (no template)
#### Scenario: Simple SQLite Table
Given that there is a SQLite file called `example.db`
That contains this table named `tblExample`:| id | name | age |
|----|-------|-----|
| 1 | Alice | 25 |
| 2 | Bob | 30 |
| 3 | Carol | 35 |And there is a query file called `example.sql`
That contains the query:
```sql
SELECT * FROM tblExample
```
When the CLI is run with the arguments:
`--connection "Data Source=example.sql" --query-file example.sql`Then a file is created named `output.html`
That contains:
```html
id
name
age
1
Alice
25
2
Bob
30
3
Carol
35
```
#### Scenario: Simple SqlServer Table
Same as above, except connecting to a local SqlServer database named `DashReportTest`.
Use connection string `"Server=localhost;Database=DashReportTest;Trusted_Connection=True;TrustServerCertificate=True"`