ydb-platform / ydb-platform/ydb-cpp-sdk
TParamsBuilder::AddParam() for scalar types
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 19
- Forks
- 31
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 10
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!)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names TParamsBuilder::AddParam() as the entry point; start there and compare it with the TValueBuilder example. Determine which scalar overloads and compatibility rules are required for the proposed syntax. Done means the supported scalar types and API behavior are agreed and the examples work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100