Incompatible API changes
Version 2.0.0 - Many Long standing semantic and syntactic changes
Returns ErrKeyNotFound
error for when a key was not found instead of return no error and a nil Record
Get
/Put
/Touch
/Operate
andExecuteUDF
commands will return anErrKeyNotFound
error when the key does not exist in the database. The old behavior used to be not to return an error, but have an emptyRecord.Bins
.
Other Changes
- Renames
Statement.Addfilter
toStatement.SetFilter
, change the name and type ofStatement.Filters
toStatement.Filter
. - Remove
ClientPolicy.RequestProleReplicas
. The client will always request them. - Removes
ScanPolicy.ServerSocketTimeout
andQueryPolicy.ServerSocketTimeout
in favor of the already existingPolicy.SocketTimeout
. - Renames
Policy.Timeout
toPolicy.TotalTimeout
to make the naming consistent with other clients. - Moves
atomic
package to internal. - Moves
ParticleType
package to internal. - Moves
RequestNodeInfo
andRequestNodeStats
to methods on Node object, and addsInfoPolicy
to the relevant API signatures. - Removes
WaitUntilMigrationIsFinished
fromScan
/Query
policies. - Changes
NewConnection
method signature, makesLoginCommand
private. - Makes
OperationType
private. - Removes long deprecated method for pool management.
- Removes unused
ReadN
method inConnection
. - Embeds Policies as values and not pointers inside
MultiPolicy
,ScanPolicy
andQueryPolicy
. - Removes
ToValueArray
andToValueSlice
methods to discourage such suboptimal use. ChangesQueryAggregate
signature to remove the need for those methods.