Releases: ydb-platform/ydb-go-sdk
Releases · ydb-platform/ydb-go-sdk
v3.11.8
- Added
trace.EndpointInfo.LastUpdated()
timestamp - Refactored
endpoint.Endpoint
(split to structendopint
and interfaceEndpoint
) - Returned safe-thread copy of
endpoint.Endpoint
to trace callbacks - Added
endpoint.Endpoint.Touch()
func for refresh endpoint info - Added
conn.conn.onClose
slice for call optional funcs on close step - Added removing
conn.Conn
fromconn.Pool
onconn.Conn.Close()
call - Checked cluster close/empty on keeper goroutine
- Fixed
internal.errors.New
wrapping depth - Added context flag for no wrapping operation results as error
- Refactored
trace.Driver
conn events - Removed internal alias-type
errors.IssuesIterator
- Changed
trace.GetCredentialsDoneInfo
token representation from bool to string - Added
log.Secret
helper for mask token - Replaced meta in
proxyConnection.Invoke
andproxyConnection.NewStream
- Refactored
internal/cluster.Cluster
(add option for notify about external lock, lock cluster for update cluster endpoints) - Reverted
grpc.ClientConnInterface
API toydb.Connection
- Replaced in
table/types/compare_test.go
checking error by error message to checking witherrors.Is()
- Added
ydb.WithTLSSInsecureSkipVerify()
option - Added
trace.Table.OnPoolStateChange
event - Wrapped internal errors with print <func, file, line>
- Removed
trace.Table.OnPoolTake
event (unused) - Refactored
trace.Details
matching by string pattern - Added resolver trace callback
- Refactored initialization step of grpc dial options
- Added internal package
net
withnet.Conn
proxy object - Fixed closing proxy clients
- Added
ydb.Connection.With(opts ...ydb.CustomOption)
for taking proxyydb.Connection
with some redefined options - Added
ydb.MetaRequestType
andydb.MetaTraceID
aliases to internalmeta
package constants - Added
ydb.WithCustomCredentials()
option - Refactored
ydb.Ratelimiter().AcquireResource()
method (added options for defining type of acquire request) - Removed single point to define operation mode params (each grpc-call with
OperationParams
must explicit defineOperationParams
) - Removed defining operation params over context
- Removed
config.RequestTimeout
andconfig.StreamTimeout
(each grpc-call must manage context instead defineconfig.RequestTimeout
orconfig.StreamTimeout
) - Added internal
OperationTimeout
andOperationCancelAfter
to each client (ratelimiter, coordination, table, scheme, scripting, discovery) config.OperationTimeout
andOperationCancelAfter
config params defined from root config
v3.10.0
- Extended
trace.Details
constants for support per-service events - Added
trace.Discovery
struct for traces discovery events - Added
trace.Ratelimiter
,trace.Coordination
,trace.Scripting
,trace.Scheme
stubs (will be implements in the future) - Added
ratelimiter/config
,coordination/config
,scripting/config
,scheme/config
,discovery/config
packages for specify per-service configs - Removed
trace.Driver.OnDiscovery
callback (moved totrace.Discovery
) - Refactored initialization step (firstly makes discovery client)
- Removed
internal/lazy.Discovery
(discovery client always initialized) - Fixed
trace.Table
event structs - Refactored grpc options for define dns-balancing configuration
- Refactored
retry.Retry
signature (addedretry.WithID
,retry.WithTrace
andretry.WithIdempotent
opt-in args, required paramisIdempotentOperation
removed) - Refactored package
internal/repeater
v3.9.4
- Removed
ydb.EndpointDatabase
,ydb.ConnectionString
andydb.MustConnectionString
helpers - Removed
ydb.ConnectParams
struct andydb.WithConnectParams
option creator - Added internal package
dsn
for register external parsers and parse connection string - Added
ydb.RegisterParser
method for registering external parser of connection string - Fixed data race on closing session pool
- Fixed busy loop on call internal logger with external logger implementation of
log.Logger
- Fixed
WithDiscoveryInterval()
option with negative argument (must useSingleConn
balancer) - Added
WithMinTLSVersion
option
v3.8.12
- Unwrap sub-tests called as
t.Run(...)
in integration tests - Updated
grpc
dependency (fromv1.38.0
tov1.43.0
) - Updated
protobuf
dependency (fromv1.26.0
tov1.27.1
) - Added internal retryers into
lazy.Ratelimiter
- Added internal retryers into
lazy.Coordination
- Added internal retryers into
lazy.Discovery
- Added internal retryers into
lazy.Scheme
- Added internal retryers into
lazy.Scripting
- Added internal retryer into
lazy.Table.CreateSession
v3.8.11
- Fixed misspell linter issue
v3.8.9
- remove some internal debug log messages
v3.8.8
- Changed connection secure to
true
by default - Renamed public package
balancer
tobalancers
(this package contains only constructors of balancers) - Moved interfaces from package
internal/balancer/ibalancer
tointernal/balancer
- Added
NextResultSetErr()
func for select next result set and return error - Added package
table/result/indexed
with interfacesindexed.Required
,indexed.Optional
,indexed.RequiredOrOptional
- Replaced abstract
interface{}
inScan
toindexed.RequiredOrOptional
- Replaced abstract
interface{}
inScanWithDefaults
toindexed.Required
- Replaced
trace.Table.OnPoolRetry
callback totrace.Table.OnPoolDo
andtrace.Table.OnPoolDoTx
callbacks - Supports server hint
session-close
for gracefully shutdown session
v3.7.2
- Retry remove directory in
sugar.RemoveRecursive()
for retryable error
v3.7.1
- Fixed panic on
result.Reset(nil)
v3.7.0
- Replaced
Option
toCustomOption
onConnection
interface methods - Implements
WithCustom[Token,Database]
options for redefine database and token - Removed experimental
balancer.PreferEndpoints[WithFallback][RegEx]
balancers - Supported connections
TTL
withOption
WithConnectionTTL
- Remove unnecessary
WithFastDial
option (lazy connections are always fast inserts into cluster) - Added
Scripting
service client with API methodsExecute()
,StreamExecute()
andExplain()
- Added
String()
method totable.types.Type
interface - Added
With[Custom]UserAgent()
Option
andCustomOption
constructors - Refactored
log.Logger
interface and internal implementation - Added
retry.RetryableError()
for returns user-defined error which must be retryed - Renamed internal type
internal.errors.OperationCompleted
tointernal.errors.OperationStatus
- Added
String()
method totable.KeyRange
andtable.Value
types - Replaced creation of goroutine on each stream call to explicit call stream.Recv() on NextResultSet()