Skip to content

Releases: ydb-platform/ydb-go-sdk

v3.42.5

16 Jan 13:08
Compare
Choose a tag to compare
  • Fixed closing of database/sql connection (aka YDB session)
  • Made session.Close() as nop for idled session
  • Implemented goroutine for closing idle connection in database/sql driver
  • Separated errors of commit from other reader and to expired session
  • Fixed wrapping error in internal/balancer/Balancer.wrapCall()

Full Changelog: v3.42.4...v3.42.5

v3.42.4

11 Jan 13:32
Compare
Choose a tag to compare
  • Added ydb.WithDisableServerBalancer() database/sql connector option

Full Changelog: v3.42.3...v3.42.4

v3.42.3

11 Jan 10:18
Compare
Choose a tag to compare
  • Added credentials.NewStaticCredentials() static credentials constructor
  • Changed internal/credentials.NewStaticCredentials() signature and behaviour for create grpc connection on each call to auth service
  • Downgrade google.golang.org/grpc to v1.49.0

Full Changelog: v3.42.2...v3.42.3

v3.42.2

09 Jan 16:23
Compare
Choose a tag to compare
  • Added trace.Details.Details() method for use external detailer

Full Changelog: v3.42.1...v3.42.2

v3.42.1

28 Dec 12:08
Compare
Choose a tag to compare
  • Fixed lazy transaction example for godoc

Full Changelog: v3.42.0...v3.42.1

v3.42.0

27 Dec 12:17
Compare
Choose a tag to compare
  • Added retry policy options for topics: topic/topicoptions.WithReaderCheckRetryErrorFunction, topic/topicoptions.WithReaderStartTimeout, topic/topicoptions.WithWriterCheckRetryErrorFunction, topic/topicoptions.WithWriterStartTimeout
  • Refactored internal/conn middlewares
  • Added trace.tableSessionInfo.LastUsage() method for get last usage timestamp
  • Reverted tx.WithCommit() changes for fix unstable behaviour of lazy transactions
  • Added options.WithCommit() option for execute query with auto-commit flag
  • Removed trace.TableTransactionExecuteStartInfo.KeepInCache field as redundant

Full Changelog: v3.41.0...v3.42.0

v3.41.0

15 Dec 18:28
Compare
Choose a tag to compare
  • Added option for set interval of auth token update in topic streams
  • Supported internal allocator in {session,statement}.Execute for decrease memory usage
  • Fixed typo in topic/README.md
  • Upgraded ydb-go-genproto dependency
  • Fixed duplicating of traces in table.Client.Do() call
  • Supported table.Transaction.WithCommit() method for execute query and auto-commit after
  • Added DataColumns to table.options.IndexDescription
  • Added scheme.EntryColumnStore and scheme.EntryColumnColumn entry types
  • Added table.options.WithPartitioningBy(columns) option

Full Changelog: v3.40.1...v3.41.0

v3.40.1

23 Nov 11:29
Compare
Choose a tag to compare
  • Added constructor of options.TimeToLiveSettings and fluent modifiers

Full Changelog: v3.40.0...v3.40.1

v3.40.0

18 Nov 15:01
Compare
Choose a tag to compare
  • Added options.WithAddAttribute and options.WithDropAttribute options for session.AlterTable request
  • Added options.WithAddIndex and options.WithDropIndex options for session.AlterTable request
  • Added return error while create topic writer with not equal producer id and message group id.
  • Added package meta with methods about YDB metadata
  • Added meta.WithTrailerCallback(ctx, callback) context modifier for attaching callback function which will be called on incoming metadata
  • Added meta.ConsumedUnits(metadata.MD) method for getting consumed units from metadata
  • Added NestedCall field to retry trace start infos for alarm on nested calls
  • Added topicoptions.WithWriterTrace option for attach tracer into separated writer
  • Added sugar.IsTableExists() helper for check existence of table

Full Changelog: v3.39.0...v3.40.0

v3.39.0

27 Oct 04:10
Compare
Choose a tag to compare
  • Removed message level partitioning from experimental topic API. It is unavailable on server side yet.
  • Supported NullValue type as received type from YDB
  • Supported types.SetValue type
  • Added types.CastTo(types.Value, destination) public method for cast types.Value to golang native type value destination
  • Added types.TupleItem(types.Value), types.StructFields(types.Value) and types.DictValues(types.Value) funcs (extractors of internal fields of tuple, struct and dict values)
  • Added types.Value.Yql() func for getting values string representation as YQL literal
  • Added types.Type.Yql() func for getting YQL representation of type
  • Marked table/types.WriteTypeStringTo as deprecated
  • Added table/options.WithDataColumns for supporting covering indexes
  • Supported balancer query string parameter in DSN
  • Fixed bug with scanning YSON value from result set
  • Added certificate caching in WithCertificatesFromFile and WithCertificatesFromPem

Full Changelog: v3.38.5...v3.39.0