Releases: questdb/go-questdb-client
Releases · questdb/go-questdb-client
4.0.0
Release overview
Adds Array support and improves QuestDB 9.0.0 compatibility.
What is new
- Add array support and protocol version option, binary protocol for doubles #55
Migration from older client versions
The code is kept compatible with v3 of the client, so the only change should be made in imports, from github.com/questdb/go-questdb-client/v3
to github.com/questdb/go-questdb-client/v4
.
3.2.0
Release overview
API improvements and bugfixes.
What is new
- Disable auto flush when set to off in config #51
- Add
PoolFromOptions
pool constructor #52 - Make
LineSenderPool
blocking and simplify its API #53
LineSenderPool
users need to migrate their existing code.
Old code:
sender, err := pool.Acquire(ctx) if err != nil { panic(err) } // ... if err := pool.Release(ctx, sender); err != nil { panic(err) }
Migrated code:
// Acquire method was renamed to Sender. sender, err := pool.Sender(ctx) if err != nil { panic(err) } // ... // Close call returns the sender back to the pool. if err := sender.Close(ctx); err != nil { panic(err) }
3.1.0
Release overview
API improvements including a pool of HTTP senders.
What is new
- Add sender pool (experimental API) #47
package main import ( "context" qdb "github.com/questdb/go-questdb-client/v3" ) func main() { ctx := context.TODO() pool := qdb.PoolFromConf("http::addr=localhost:9000") defer func() { err := pool.Close(ctx) if err != nil { panic(err) } }() sender, err := pool.Acquire(ctx) if err != nil { panic(err) } sender.Table("prices"). Symbol("ticker", "AAPL"). Float64Column("price", 123.45). AtNow(ctx) if err := pool.Release(ctx, sender); err != nil { panic(err) } }
Note that the pool only supports HTTP senders.
3.0.8
3.0.7
3.0.6
3.0.5
Release overview
Maintenance release to include important bug fixes.
What is new
- Fix empty request body sent by HTTP sender on retry #38
Sender's buffer is reset on any network write in Flush
calls (explicit and implicit). That's to prevent potential ILP message corruption. Besides that, HTTP sender now sends a non-chunked request body.