-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
At the time YDB C++ SDK requires the following syntax to for building (indentation mine):
params
.AddParam("$a")
.Uint64(4)
.Build()
.AddParam("$b")
.Utf8("Hello, World!")
.Build()
;
There is an alternative available which looks like this:
params.AddParam("$id", NYdb::TValueBuilder().Utf8(id).Build());
Both require verbose wording.
Maybe is it possible to invent a more compact alternative using modern C++ syntax, i. e.:
params
.AddParam("$a", 4ull)
.AddParam("$b", "Hello, World!)