1
- [ ![ GoDoc reference] ( https://img.shields.io/badge/godoc-reference-blue.svg )] ( https://pkg.go.dev/github.com/questdb/go-questdb-client/v3 )
1
+ [ ![ GoDoc reference] ( https://img.shields.io/badge/godoc-reference-blue.svg )] ( https://pkg.go.dev/github.com/questdb/go-questdb-client/v4 )
2
2
3
3
# go-questdb-client
4
4
@@ -15,11 +15,10 @@ Features:
15
15
* Automatic write retries and connection reuse for ILP over HTTP.
16
16
* Tested against QuestDB 7.3.10 and newer versions.
17
17
18
- New in v3:
19
- * Supports ILP over HTTP using the same client semantics
18
+ New in v4:
20
19
* Supports n-dimensional arrays of doubles for QuestDB servers 9.0.0 and up
21
20
22
- Documentation is available [ here] ( https://pkg.go.dev/github.com/questdb/go-questdb-client/v3 ) .
21
+ Documentation is available [ here] ( https://pkg.go.dev/github.com/questdb/go-questdb-client/v4 ) .
23
22
24
23
## Quickstart
25
24
@@ -31,7 +30,7 @@ import (
31
30
" log"
32
31
" time"
33
32
34
- qdb " github.com/questdb/go-questdb-client/v3 "
33
+ qdb " github.com/questdb/go-questdb-client/v4 "
35
34
)
36
35
37
36
func main () {
@@ -212,7 +211,7 @@ package main
212
211
import (
213
212
" context"
214
213
215
- qdb " github.com/questdb/go-questdb-client/v3 "
214
+ qdb " github.com/questdb/go-questdb-client/v4 "
216
215
)
217
216
218
217
func main () {
@@ -243,54 +242,6 @@ func main() {
243
242
}
244
243
```
245
244
246
- ## Migration from v2
247
-
248
- v2 code example:
249
- ``` go
250
- package main
251
-
252
- import (
253
- " context"
254
-
255
- qdb " github.com/questdb/go-questdb-client/v2"
256
- )
257
-
258
- func main () {
259
- // Connect to QuestDB running on 127.0.0.1:9009 (ILP/TCP)
260
- sender , err := qdb.NewLineSender (context.TODO ())
261
- // ...
262
- defer sender.Close ()
263
- // ...
264
- }
265
- ```
266
-
267
- Migrated v3 code:
268
- ``` go
269
- package main
270
-
271
- import (
272
- " context"
273
-
274
- qdb " github.com/questdb/go-questdb-client/v3"
275
- )
276
-
277
- func main () {
278
- // Connect to QuestDB running on 127.0.0.1:9000 (ILP/HTTP)
279
- sender , err := qdb.NewLineSender (context.TODO (), qdb.WithHTTP ())
280
- // Alternatively, you can use the LineSenderFromConf function:
281
- // sender, err := qdb.LineSenderFromConf(ctx, "http::addr=localhost:9000;")
282
- // ...
283
- // or you can export the "http::addr=localhost:9000;" config string to
284
- // the QDB_CLIENT_CONF environment variable and use the LineSenderFromEnv function:
285
- // sender, err := qdb.LineSenderFromEnv(ctx)
286
- // ...
287
- defer sender.Close (context.TODO ())
288
- // ...
289
- }
290
- ```
291
-
292
- Note that the migrated code uses the HTTP sender instead of the TCP one.
293
-
294
245
## Community
295
246
296
247
If you need help, have additional questions or want to provide feedback, you
0 commit comments