Skip to content

Releases: ydb-platform/ydb-go-sdk

v3.42.9

14 Feb 05:57

Choose a tag to compare

  • Added internal/xerrors.Errorf error for wrap multiple errors and check them with errors.Is of errors.As
  • Fixed corner cases of internal/wait.Wait
  • Added check of port in connection string and erro throw
  • Fixed bug with initialization of connection pool before apply static credentials
  • Refactored of applying grpc dial options with defaults
  • Added trace.Driver.{OnBalancerDialEntrypoint,OnBalancerClusterDiscoveryAttempt} trace events
  • Fixed compilation of package internal/xresolver with google.golang.org/[email protected]
  • Fixed returning io.EOF on rows.Next and rows.NextResultSet
  • Added wrapping of errors from unary and stream results
  • Added error throw on database/sql.Conn.BeginTx(), *sql.Tx.ExecContext and *sql.Tx.QueryContext if query mode is not ydb.DataQueryMode
  • Added test for database/sql scan-query

Full Changelog: v3.42.8...v3.42.9

v3.42.8

01 Feb 11:24

Choose a tag to compare

  • Fixed internal/scheme/helpers/IsDirectoryExists(..) recursive bug

Full Changelog: v3.42.7...v3.42.8

v3.42.7

30 Jan 16:44

Choose a tag to compare

  • Fixed sugar.IsTableExists with recursive check directory exists
  • Added sugar.IsDirectoryExists
  • Changed type of table/options.IndexType for type checks
  • Added constants table/options.IndexTypeGlobal and table/options.IndexTypeGlobalAsync
  • Added table/options.IndexDescription.Type field with table/options.IndexType type

Full Changelog: v3.42.6...v3.42.7

v3.42.6

28 Jan 07:26

Choose a tag to compare

  • Implemented driver.RowsColumnTypeDatabaseTypeName interface in internal/xsql.rows struct
  • Extended internal/xsql.conn struct with methods for getting YDB metadata
  • Added scheme.Client to internal/xsql.connection interface
  • Added helpers package with method for checking existence of table, refactored sugar.IsTableExists()
  • Added checks for nil option to all opts range loops
  • Moved content of package internal/ctxlabels into internal/xcontext
  • Implemented GRPCStatus method in internal/xerrors/transportError
  • Added different implementations of stacktrace error for grpc errors and other
  • Dropped internal/xnet package as useless
  • Fixed default grpc dial options
  • Replaced single connection for discovery repeater into connection which creates each time for discovery request
  • Fixed retry of cluster discovery on initialization
  • Fixed dial timeout processing

Full Changelog: v3.42.5...v3.42.6

v3.42.5

16 Jan 13:08

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

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

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

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

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

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