Skip to content

Commit d634df9

Browse files
authored
chore: update examples so we can have unique tables per-client (#24)
1 parent 5b99649 commit d634df9

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

examples.manifest.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@
1515
addr:
1616
host: localhost
1717
port: 9009
18+
19+
- name: ilp-from-conf
20+
lang: csharp
21+
path: src/example-basic/Program.cs
22+
header: |-
23+
[.NET client library](https://github.com/questdb/net-questdb-client)
24+
conf: http::addr=localhost:9000;

src/example-auth-http-tls/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using var sender =
77
Sender.New("https::addr=localhost:9000;tls_verify=unsafe_off;username=admin;password=quest;");
8-
await sender.Table("trades")
8+
await sender.Table("trades_dotnet")
99
.Symbol("pair", "USDGBP")
1010
.Symbol("type", "buy")
1111
.Column("traded_price", 0.83)
@@ -14,7 +14,7 @@ await sender.Table("trades")
1414
.Column("traded_ts", new DateTime(
1515
2022, 8, 6, 7, 35, 23, 189, DateTimeKind.Utc))
1616
.AtAsync(DateTime.UtcNow);
17-
await sender.Table("trades")
17+
await sender.Table("trades_dotnet")
1818
.Symbol("pair", "GBPJPY")
1919
.Column("traded_price", 135.97)
2020
.Column("qty", 400)

src/example-auth-tls/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Sender.New(
99
"tcps::addr=localhost:9009;tls_verify=unsafe_off;username=admin;token=NgdiOWDoQNUP18WOnb1xkkEG5TzPYMda5SiUOvT1K0U=;");
1010
// See: https://questdb.io/docs/reference/api/ilp/authenticate
11-
await sender.Table("trades")
11+
await sender.Table("trades_dotnet")
1212
.Symbol("pair", "USDGBP")
1313
.Symbol("type", "buy")
1414
.Column("traded_price", 0.83)
@@ -17,7 +17,7 @@ await sender.Table("trades")
1717
.Column("traded_ts", new DateTime(
1818
2022, 8, 6, 7, 35, 23, 189, DateTimeKind.Utc))
1919
.AtAsync(DateTime.UtcNow);
20-
await sender.Table("trades")
20+
await sender.Table("trades_dotnet")
2121
.Symbol("pair", "GBPJPY")
2222
.Column("traded_price", 135.97)
2323
.Column("qty", 400)

src/example-basic/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using QuestDB;
33

44
using var sender = Sender.New("http::addr=localhost:9000;");
5-
await sender.Table("trades")
5+
await sender.Table("trades_dotnet")
66
.Symbol("pair", "USDGBP")
77
.Symbol("type", "buy")
88
.Column("traded_price", 0.83)
@@ -11,7 +11,7 @@ await sender.Table("trades")
1111
.Column("traded_ts", new DateTime(
1212
2022, 8, 6, 7, 35, 23, 189, DateTimeKind.Utc))
1313
.AtAsync(DateTime.UtcNow);
14-
await sender.Table("trades")
14+
await sender.Table("trades_dotnet")
1515
.Symbol("pair", "GBPJPY")
1616
.Column("traded_price", 135.97)
1717
.Column("qty", 400)

src/example-streaming/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
for (var i = 0; i < rowsToSend; i++)
1212
{
13-
await sender.Table("trades")
13+
await sender.Table("trades_dotnet")
1414
.Symbol("pair", "USDGBP")
1515
.Symbol("type", "buy")
1616
.Column("traded_price", 0.83)

0 commit comments

Comments
 (0)