Releases: questdb/go-questdb-client
Releases · questdb/go-questdb-client
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.