Skip to content

Commit be587ba

Browse files
authored
Prepare for v4 release (#56)
1 parent 6f3124e commit be587ba

21 files changed

+34
-101
lines changed

README.md

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

3736
func main() {
@@ -212,7 +211,7 @@ package main
212211
import (
213212
"context"
214213

215-
qdb "github.com/questdb/go-questdb-client/v3"
214+
qdb "github.com/questdb/go-questdb-client/v4"
216215
)
217216

218217
func 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

296247
If you need help, have additional questions or want to provide feedback, you

buffer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"testing"
3434
"time"
3535

36-
qdb "github.com/questdb/go-questdb-client/v3"
36+
qdb "github.com/questdb/go-questdb-client/v4"
3737
"github.com/stretchr/testify/assert"
3838
)
3939

conf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"testing"
3030
"time"
3131

32-
qdb "github.com/questdb/go-questdb-client/v3"
32+
qdb "github.com/questdb/go-questdb-client/v4"
3333
"github.com/stretchr/testify/assert"
3434
)
3535

examples.manifest.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
lang: go
55
path: examples/tcp/basic/main.go
66
header: |-
7-
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v3)
7+
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v4)
88
and [repo](https://github.com/questdb/go-questdb-client).
99
- name: ilp-auth
1010
lang: go
1111
path: examples/tcp/auth/main.go
1212
header: |-
13-
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v3)
13+
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v4)
1414
and [repo](https://github.com/questdb/go-questdb-client).
1515
auth:
1616
kid: testUser1
@@ -22,7 +22,7 @@
2222
lang: go
2323
path: examples/tcp/auth-and-tls/main.go
2424
header: |-
25-
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v3)
25+
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v4)
2626
and [repo](https://github.com/questdb/go-questdb-client).
2727
auth:
2828
kid: testUser1
@@ -34,6 +34,6 @@
3434
lang: go
3535
path: examples/from-conf/main.go
3636
header: |-
37-
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v3)
37+
Go client library [docs](https://pkg.go.dev/github.com/questdb/go-questdb-client/v4)
3838
and [repo](https://github.com/questdb/go-questdb-client).
3939
conf: http::addr=localhost:9000;

examples/from-conf/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"time"
77

8-
qdb "github.com/questdb/go-questdb-client/v3"
8+
qdb "github.com/questdb/go-questdb-client/v4"
99
)
1010

1111
func main() {

examples/http/auth-and-tls/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"time"
77

8-
qdb "github.com/questdb/go-questdb-client/v3"
8+
qdb "github.com/questdb/go-questdb-client/v4"
99
)
1010

1111
func main() {

examples/http/auth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"time"
77

8-
qdb "github.com/questdb/go-questdb-client/v3"
8+
qdb "github.com/questdb/go-questdb-client/v4"
99
)
1010

1111
func main() {

examples/http/basic/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"time"
77

8-
qdb "github.com/questdb/go-questdb-client/v3"
8+
qdb "github.com/questdb/go-questdb-client/v4"
99
)
1010

1111
func main() {

examples/tcp/auth-and-tls/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"time"
77

8-
qdb "github.com/questdb/go-questdb-client/v3"
8+
qdb "github.com/questdb/go-questdb-client/v4"
99
)
1010

1111
func main() {

examples/tcp/auth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"time"
77

8-
qdb "github.com/questdb/go-questdb-client/v3"
8+
qdb "github.com/questdb/go-questdb-client/v4"
99
)
1010

1111
func main() {

0 commit comments

Comments
 (0)