Skip to content

Commit 50599ac

Browse files
Antony BaileyAntony Bailey
authored andcommitted
add readme to project
1 parent be8299a commit 50599ac

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed

CSQLY.CLI/CSQLY.CLI.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
<RootNamespace>CSQLY.CLI</RootNamespace>
1010
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1111
<NoWarn>NU1701</NoWarn>
12+
<PackageId>CSQLY.CLI</PackageId>
13+
<Version>0.1.0</Version>
14+
<Authors>CSQLY Team</Authors>
15+
<Description>Command-line interface for CSQLY, a simplified query language for databases using YAML</Description>
16+
<PackageTags>sql;yaml;database;query;cli</PackageTags>
17+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
18+
<PackageProjectUrl>https://github.com/Standard-Query-Language/CSQLY</PackageProjectUrl>
19+
<RepositoryUrl>https://github.com/Standard-Query-Language/CSQLY.git</RepositoryUrl>
20+
<PackAsTool>true</PackAsTool>
21+
<ToolCommandName>csqly</ToolCommandName>
22+
<PackageReadmeFile>README.md</PackageReadmeFile>
1223
</PropertyGroup>
1324

1425
<ItemGroup>
@@ -19,4 +30,8 @@
1930
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
2031
</ItemGroup>
2132

33+
<ItemGroup>
34+
<None Include="README.md" Pack="true" PackagePath="\" />
35+
</ItemGroup>
36+
2237
</Project>

CSQLY.CLI/README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CSQLY Command Line Interface
2+
3+
CSQLY CLI is a command-line tool for executing YAML-based SQL queries against various database systems.
4+
5+
## Installation
6+
7+
```bash
8+
dotnet tool install --global CSQLY.CLI
9+
```
10+
11+
## Usage
12+
13+
```bash
14+
csqly --file <path-to-yaml-file> --connection <connection-string> --type <database-type>
15+
```
16+
17+
Abbreviated options:
18+
19+
```bash
20+
csqly -f <path-to-yaml-file> -c <connection-string> -t <database-type>
21+
```
22+
23+
## Options
24+
25+
| Option | Abbreviation | Description |
26+
|--------|--------------|-------------|
27+
| `--file` | `-f` | Path to the YAML query file |
28+
| `--connection` | `-c` | Database connection string |
29+
| `--type` | `-t` | Database type (sqlite, mysql, postgres, sqlserver, oracle) |
30+
| `--help` | `-h` | Show help information |
31+
| `--version` | `-v` | Show version information |
32+
33+
## Examples
34+
35+
### SQLite Example
36+
37+
```bash
38+
csqly -f query.yaml -c "Data Source=mydb.sqlite" -t sqlite
39+
```
40+
41+
### MySQL Example
42+
43+
```bash
44+
csqly -f query.yaml -c "Server=localhost;Database=mydb;User ID=user;Password=password;" -t mysql
45+
```
46+
47+
## YAML Query Example
48+
49+
```yaml
50+
select:
51+
columns:
52+
- id
53+
- name
54+
- email
55+
from: users
56+
where:
57+
active: true
58+
limit: 10
59+
```
60+
61+
## More Information
62+
63+
For full documentation, visit the [GitHub repository](https://github.com/Standard-Query-Language/CSQLY).

CSQLY/CSQLY.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@
1818
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1919
<PackageProjectUrl>https://github.com/Standard-Query-Language/CSQLY</PackageProjectUrl>
2020
<RepositoryUrl>https://github.com/Standard-Query-Language/CSQLY.git</RepositoryUrl>
21+
<PackageReadmeFile>README.md</PackageReadmeFile>
2122
</PropertyGroup>
2223

24+
<ItemGroup>
25+
<None Include="README.md" Pack="true" PackagePath="\" />
26+
</ItemGroup>
27+
2328
<!-- Optional: Add references to database providers that you want to support out of the box -->
2429
<!--
2530
<ItemGroup>

CSQLY/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CSQLY - SQL with YAML
2+
3+
CSQLY is a simplified query language for multiple databases that allows you to write database queries in YAML format and execute them against different database engines.
4+
5+
## Features
6+
7+
- Write database queries in easy-to-read YAML format
8+
- Support for multiple database types:
9+
- SQLite
10+
- MySQL/MariaDB
11+
- PostgreSQL
12+
- Oracle
13+
- Microsoft SQL Server
14+
- Simplified query syntax with type safety
15+
- Connection pooling and management
16+
- Easily extensible architecture
17+
18+
## Installation
19+
20+
### Package Manager Console
21+

0 commit comments

Comments
 (0)