Files
scylladb/redis
Botond Dénes 2ca118b2d5 query: read_command: add separate convenience constructor
query::read_command currently has a single constructor, which serves
both as an idl constructor (order of parameters is fixed) and a convenience one
(most parameters have default values). This makes it very error prone to
add new parameters, that everyone should fill. The new parameter has to
be added as last, with a default value, as the previous ones have a
default value as well. This means the compiler's help cannot be enlisted
to make sure all usages are updated.

This patch adds a separate convenience constructor to be used by normal
code. The idl constructor looses all default parameters. New parameters
can be added to any position in the convenience constructor (to force
users to fill in a meaningful value) while the removed default
parameters from the idl constructor means code cannot accidentally use
it without noticing.
2020-07-28 18:00:29 +03:00
..
2020-07-14 10:56:23 +03:00
2020-07-14 10:56:23 +03:00
2020-07-14 10:56:23 +03:00
2020-04-13 10:46:45 +09:00
2020-03-22 13:16:20 +02:00
2020-03-03 11:34:00 +01:00
2020-04-27 13:58:33 +09:00
2020-03-22 13:16:20 +02:00