Skip to content

Releases: ydb-platform/ydb-go-sdk

v3.44.2

22 Apr 11:38

Choose a tag to compare

  • Removed debug print

Full Changelog: v3.44.1...v3.44.2

v3.44.1

22 Apr 11:18

Choose a tag to compare

  • Fixed bug with returning session into pool before second re-discovery

Full Changelog: v3.44.0...v3.44.1

v3.44.0

17 Apr 09:38

Choose a tag to compare

  • Added table/options.WithCallOptions options for append custom grpc call options into session.{BulkUpsert,Execute,StreamExecuteScanQuery}
  • Supported fake transactions in database/sql driver over connector option ydb.WithFakeTx(queryMode) and connection string param go_fake_tx
  • Removed testutil/timeutil package (all usages replaced with clockwork package)
  • Changed behaviour of retryer on transport errors cancelled and deadline exceeded - will retry idempotent operation if context is not done
  • Added address of node to operation error description as optional
  • Fixed bug with put session from unknown node
  • Fixed bug with parsing of TzTimestamp without microseconds
  • Fixed code -1 of retryable error if wrapped error with code
  • Added ydb.MustOpen and ydb.MustConnector helpers
  • Fixed internal/xerrors.Transport error wrapping for case when given error is not transport error
  • Added grpc and operation codes to errors string description
  • Extend scheme.Client interface with method Database
  • Removed driver.ResultNoRows in internal/xsql
  • Added ydb.{WithTablePathPrefix,WithAutoDeclare,WithPositionalArgs,WithNumericalArgs} query modifiers options
  • Supported binding parameters for database/sql driver over connector option ydb.WithAutoBind() and connection string params go_auto_bind={origin,table_path_prefix(path),declare,numeric,positional}
  • Added testutil.QueryBind test helper
  • Fixed topic retry policy callback call: not call it with nil error
  • Fixed bug with no checking operation error on discovery.Client calls
  • Allowed zero create session timeout in ydb.WithSessionPoolCreateSessionTimeout(timeout) (less than or equal to zero - no used timeout on create session request)
  • Added examples with own go.mod
  • Marked as deprecated ydb.WithErrWriter(w) and ydb.WithOutWriter(w) logger options
  • Added ydb.WithWriter(w) logger option

Full Changelog: v3.43.0...v3.44.0

v3.43.0

11 Mar 18:48

Choose a tag to compare

Small broken changes

Most users can skip there notes and upgrade as usual because build break rare used methods (expiremental API and api for special cases, not need for common use YDB) and this version has no any behavior changes.

Changes for experimental topic API:

  • Moved producer_id from required positional argument to option WithProducerID (and it is optional now)
  • Removed WithMessageGroupID option (because not supported now)

Changes in ydb connection:

  • Publish internal private struct ydb.connection as ydb.Driver (it is implement ydb.Connection)
  • ydb.Connection marked as deprecated
  • Changed return type of ydb.Open(...) from ydb.Connection to *ydb.Driver
  • Changed return type of ydb.New(...) from ydb.Connection to *ydb.Driver
  • Changed argument type for ydb.GRPCConn from ydb.Connection to *ydb.Driver
  • Removed method With from ydb.Connection (use *Driver.With instead).

Changes in package sugar:

  • Changed a type of database arg in sugar.{MakeRecursive,RemoveRecursive} from ydb.Connection to minimal required local interface

Dependencies:

  • Up minimal supported version of go to 1.17 for update dependencies (new golang.org/x doesn't compiled for go1.16)
  • Upgrade golang.org/x/... for prevent issues: CVE-2021-33194, CVE-2022-27664, CVE-2021-31525, CVE-2022-41723

Full Changelog: v3.42.15...v3.43.0

v3.42.15

10 Mar 12:48

Choose a tag to compare

  • Fixed checking nil error with internal/xerrors.Is

Full Changelog: v3.42.14...v3.42.15

v3.42.14

07 Mar 07:40

Choose a tag to compare

  • Supported scheme.EntryTopic path child entry in sugar.RemoveRecursive

Full Changelog: v3.42.13...v3.42.14

v3.42.13

07 Mar 04:13

Choose a tag to compare

  • Fixed default state of internal/xerrors.retryableError: it inherit properties from parent error as possible
  • Marked event grpc/stats.End as ignored at observing status of grpc connection

Full Changelog: v3.42.12...v3.42.13

v3.42.12

03 Mar 07:54

Choose a tag to compare

  • Replaced the balancer connection to discovery service from short-lived grpc connection to internal/conn lazy connection (revert related changes from v3.42.6)
  • Marked as deprecated trace.Driver.OnBalancerDialEntrypoint event callback
  • Deprecated trace.Driver.OnConnTake event callback
  • Added trace.Driver.OnConnDial event callback

Full Changelog: v3.42.11...v3.42.12

v3.42.11

01 Mar 12:17

Choose a tag to compare

  • Fixed validation error for topicoptions.WithPartitionID option of start topic writer.

Full Changelog: v3.42.10...v3.42.11

v3.42.10

14 Feb 09:41

Choose a tag to compare

  • Added exit from retryer if got grpc-error Unauthenticated on discovery/ListEndpoints call

Full Changelog: v3.42.9...v3.42.10