File tree Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Original file line number Diff line number Diff line change 66
66
if : ${{ always() }}
67
67
- name : Pack
68
68
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 }}
Original file line number Diff line number Diff line change 5
5
[ ![ NuGet] ( https://img.shields.io/nuget/dt/ChDB.svg )] ( https://www.nuget.org/packages/ChDB/ )
6
6
[ ![ License] ( https://img.shields.io/github/license/ChDB/chdb.svg )] ( https://github.com/vilinski/chdb/LICENSE.md )
7
7
8
- # chdb NuGet package
8
+ ## chdb NuGet package
9
9
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.
11
11
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
13
40
14
41
This is a dotnet tool for [ chdb] ( https://doc.chdb.io ) library.
15
42
Actually you better just install clickhouse client and run ` clickhouse local `
16
43
17
- ## Installation
44
+ ### Installation
18
45
19
46
``` bash
20
47
dotnet tool install -g chdb-tool
21
48
```
22
49
23
- ## Usage
50
+ ### Usage
51
+
52
+ Try any of this commands lines to see which output you get.
24
53
25
54
``` bash
26
- chdb --help
55
+ chdb
27
56
chdb --version
57
+ chdb --help
28
58
chdb " select version()"
29
59
chdb " select * from system.formats where is_output = 1" PrettyCompact
30
60
```
You can’t perform that action at this time.
0 commit comments