Releases: ydb-platform/ydb-go-sdk
Releases · ydb-platform/ydb-go-sdk
v3.25.3
- Changed primary license to
Apache2.0
for auto-detect license - Refactored
types.Struct
value creation
Full Changelog: v3.25.2...v3.25.3
v3.25.2
- Fixed repeater initial force timeout from 500 to 0.5 second
Full Changelog: v3.25.1...v3.25.2
v3.25.1
- Fixed bug with unexpected failing of call
Invoke
andNewStream
on closed cluster - Fixed bug with releasing
internal/conn/conn.Pool
in cluster - Replaced interface
internal/conn/conn.Pool
to structinternal/conn/conn.Pool
Full Changelog: v3.25.0...v3.25.1
v3.25.0
- Added
ydb.GRPCConn(ydb.Connection)
helper for connect to driver-unsupported YDB services - Marked as deprecated
session.Prepare
callback - Marked as deprecated
options.WithQueryCachePolicyKeepInCache
andoptions.WithQueryCachePolicy
options - Added
options.WithKeepInCache
option - Enabled by default keep-in-cache policy for data queries
- Removed from
ydb.Connection
embedding ofgrpc.ClientConnInterface
- Fixed stopping of repeater
- Added log backoff between force repeater wake up's (from 0s to 32s)
- Renamed
trace.DriverRepeaterTick{Start,Done}Info
totrace.DriverRepeaterWakeUp{Start,Done}Info
- Fixed unexpected
NullFlag
while parse nilJSONDocument
value - Removed
internal/conn/conn.streamUsages
andinternal/conn/conn.usages
(internal/conn.conn
always touching last usage timestamp on API calls) - Removed auto-reconnecting for broken conns
- Renamed
internal/database
package tointernal/router
for unambiguous understanding of package mission - Refactored applying actual endpoints list after re-discovery (replaced diff-merge logic to swap cluster struct, cluster and balancers are immutable now)
- Added
trace.Driver.OnUnpessimizeNode
trace event
Full Changelog: v3.24.2...v3.25.0
v3.24.2
- Changed default balancer to
RandomChoice()
becausePreferLocalDC()
balancer works incorrectly with DNS-balanced callDiscovery/ListEndpoints
Full Changelog: v3.24.1...v3.24.2
v3.24.1
- Refactored initialization of coordination, ratelimiter, scheme, scripting and table clients from
internal/lazy
package to each client initialization withsync.Once
- Removed
internal/lazy
package - Added retry option
retry.WithStackTrace
for wrapping errors with stacktrace
Full Changelog: v3.24.0...v3.24.1
v3.24.0
- Fixed re-opening case after close lazy-initialized clients
- Removed dependency of call context for initializing lazy table client
- Added
config.AutoRetry()
flag withtrue
value by default.config.AutoRetry()
affects how to errors handle in sub-clients calls. - Added
config.WithNoAutoRetry
for disabling auto-retry on errors in sub-clients calls - Refactored
internal/lazy
package (supported checkconfig.AutoRetry()
, removed all error wrappings with stacktrace)
Full Changelog: v3.23.0...v3.24.0
v3.23.0
- Added
WithTLSConfig
option for redefine TLS config - Added
sugar.LoadCertificatesFromFile
andsugar.LoadCertificatesFromPem
helpers
Full Changelog: v3.22.0...v3.23.0
v3.22.0
- Supported
json.Unmarshaler
type for scanning row to values - Reimplement
sugar.DSN
withnet/url
Full Changelog: v3.21.0...v3.22.0
v3.21.0
- Fixed gtrace tool generation code style bug with leading spaces
- Removed accounting load factor (unused field) in balancers
- Enabled by default anonymous credentials
- Enabled by default internal dns resolver
- Removed from defaults
grpc.WithBlock()
option - Added
ydb.Open
method with required param connection string - Marked
ydb.New
method as deprecated - Removed package
dsn
- Added
sugar.DSN
helper for make dsn (connection string) - Refactored package
retry
(movedretryBackoff
andretryMode
implementations tointernal
) - Refactored
config.Config
(remove interfaceConfig
, renamed private structconfig
toConfig
) - Moved
discovery/config
tointernal/discovery/config
- Moved
coordination/config
tointernal/coordination/config
- Moved
scheme/config
tointernal/scheme/config
- Moved
scripting/config
tointernal/scripting/config
- Moved
table/config
tointernal/table/config
- Moved
ratelimiter/config
tointernal/ratelimiter/config
Full Changelog: v3.20.2...v3.21.0