Descriptiondatastore: variadic Get, Put, Exists, Delete.
Fixes #51.
Update Get, Put, Exists, and Delete to be variadic. This will make the
interface more usable and get rid of boilerplate in client code.
Get, Put, Exists, and Delete now accept variadic arguments. Any one of
these arguments can be an argument that was previously valid or
the *Multi version of those functions. This effectively obsoletes the *Multi
versions, but they are left in for backwards compatiblility with the stated
intention of removing them at a later date.
Get/Put/Exists/Delete will now return a single error in the one-argument
case or a MultiError in a multiple-argument case. Note that now that single
argument case can take a slice type, the single error may itself be a
MultiError if the single argument is a slice.
Committed: https://github.com/luci/gae/commit/ee5266ebb4c1957a848000175f03ddb6845d01ed
Patch Set 1 #
Total comments: 12
Patch Set 2 : ExistsMulti and DeleteMulti are also friends. #Patch Set 3 : Handle empty slices, Exists now has its own test. #Patch Set 4 : Update documentation and fix/clarify behavior on ExistsResult. #
Total comments: 14
Patch Set 5 : Comments, added PLS chan support because why not. #Patch Set 6 : s/chn/chan/ #
Messages
Total messages: 29 (14 generated)
|