Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"`