Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for C++17 type std::any #325

Open
mloskot opened this issue Apr 29, 2022 · 0 comments
Open

Add support for C++17 type std::any #325

mloskot opened this issue Apr 29, 2022 · 0 comments
Labels
category/feature good-first-issue Opportunity for new contributors to help us

Comments

@mloskot
Copy link
Member

mloskot commented Apr 29, 2022

It is desirable to support the following:

nanodbc::result r = nanodbc::execute(connection, "SELECT a, b FROM t");
auto v0 = r.get<std::any>(0);
auto v1 = r.get<std::any>(1);

And, if is_null(column) == true then r.get<std::any>(column).has_value() == false.

@mloskot mloskot added category/feature good-first-issue Opportunity for new contributors to help us labels Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/feature good-first-issue Opportunity for new contributors to help us
Projects
None yet
Development

No branches or pull requests

1 participant