Skip to content

new feature needed : suport coroutine for co_yield c++20 #305

Open
@asialiugf

Description

@asialiugf
    client.Select("SELECT id, name FROM default.numbers", [] (const Block& block) -> std::generator<Block>
        {
            for (size_t i = 0; i < block.GetRowCount(); ++i) {
                std::cout << block[0]->As<ColumnUInt64>()->At(i) << " "
                          << block[1]->As<ColumnString>()->At(i) << "\n";
                          co_yield block ;
            }
        }
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneed-infoAwaiting extra info from community/issue creator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions