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 )
22
33# go-questdb-client
44
@@ -15,11 +15,10 @@ Features:
1515* Automatic write retries and connection reuse for ILP over HTTP.
1616* Tested against QuestDB 7.3.10 and newer versions.
1717
18- New in v3:
19- * Supports ILP over HTTP using the same client semantics
18+ New in v4:
2019* Supports n-dimensional arrays of doubles for QuestDB servers 9.0.0 and up
2120
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 ) .
2322
2423## Quickstart
2524
@@ -31,7 +30,7 @@ import (
3130 " log"
3231 " time"
3332
34- qdb " github.com/questdb/go-questdb-client/v3 "
33+ qdb " github.com/questdb/go-questdb-client/v4 "
3534)
3635
3736func main () {
@@ -212,7 +211,7 @@ package main
212211import (
213212 " context"
214213
215- qdb " github.com/questdb/go-questdb-client/v3 "
214+ qdb " github.com/questdb/go-questdb-client/v4 "
216215)
217216
218217func main () {
@@ -243,54 +242,6 @@ func main() {
243242}
244243```
245244
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- 294245## Community
295246
296247If you need help, have additional questions or want to provide feedback, you
0 commit comments