Skip to content

Commit e825a3d

Browse files
Andreas Vilinskivilinski
Andreas Vilinski
authored andcommitted
push nuget only on release
1 parent 34f9348 commit e825a3d

File tree

2 files changed

+40
-10
lines changed

2 files changed

+40
-10
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
if: ${{ always() }}
6767
- name: Pack
6868
run: dotnet pack -c Release --include-symbols
69-
- name: Publish the package to nuget.org
70-
run: dotnet nuget push nupkg/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
71-
env:
72-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
69+
# - name: Publish the package to nuget.org
70+
# run: dotnet nuget push nupkg/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
71+
# env:
72+
# NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}

README.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,56 @@
55
[![NuGet](https://img.shields.io/nuget/dt/ChDB.svg)](https://www.nuget.org/packages/ChDB/)
66
[![License](https://img.shields.io/github/license/ChDB/chdb.svg)](https://github.com/vilinski/chdb/LICENSE.md)
77

8-
# chdb NuGet package
8+
## chdb NuGet package
99

10-
This is a .NET Core binding for [chdb](https://doc.chdb.io) library.
10+
A .NET Core binding for [chdb](https://doc.chdb.io) library.
1111

12-
# chdb-tool dotnet tool
12+
13+
### Installation
14+
15+
```bash
16+
dotnet add package chdb
17+
```
18+
19+
### Usage
20+
21+
```csharp
22+
using ChDb;
23+
24+
var result = ChDb.Query("select version()");
25+
Console.WriteLine(result);
26+
// 23.10.1.1
27+
var result = ChDb.Query("select * from system.formats where is_output = 1", "PrettyCompact");
28+
// ┌─name───────────────────────────────────────┬─is_input─┬─is_output─┬─supports_parallel_parsing─┬─supports_parallel_formatting─┐
29+
// │ Prometheus │ 0 │ 1 │ 0 │ 0 │
30+
// │ PostgreSQLWire │ 0 │ 1 │ 0 │ 0 │
31+
// │ MySQLWire │ 0 │ 1 │ 0 │ 0 │
32+
// │ JSONEachRowWithProgress │ 0 │ 1 │ 0 │ 0 │
33+
// │ ODBCDriver2 │ 0 │ 1 │ 0 │ 0 │
34+
// ...
35+
var result = ChDb.Query("DESCRIBE s3('https://datasets-documentation.s3.eu-west-3.amazonaws.com/house_parquet/house_0.parquet')");
36+
Console.WriteLine(result.Buf);
37+
```
38+
39+
## chdb-tool
1340

1441
This is a dotnet tool for [chdb](https://doc.chdb.io) library.
1542
Actually you better just install clickhouse client and run `clickhouse local`
1643

17-
## Installation
44+
### Installation
1845

1946
```bash
2047
dotnet tool install -g chdb-tool
2148
```
2249

23-
## Usage
50+
### Usage
51+
52+
Try any of this commands lines to see which output you get.
2453

2554
```bash
26-
chdb --help
55+
chdb
2756
chdb --version
57+
chdb --help
2858
chdb "select version()"
2959
chdb "select * from system.formats where is_output = 1" PrettyCompact
3060
```

0 commit comments

Comments
 (0)