ydb-platform / ydb-platform/ydb-cpp-sdk

TParamsBuilder::AddParam() for scalar types

Open
#544 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement student-projects
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.