Skip to content

chaotic: поддержка USERVER_NAMESPACE::formats::json::Value #918

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

Open
Reavolt opened this issue Apr 18, 2025 · 0 comments
Open

chaotic: поддержка USERVER_NAMESPACE::formats::json::Value #918

Reavolt opened this issue Apr 18, 2025 · 0 comments

Comments

@Reavolt
Copy link

Reavolt commented Apr 18, 2025

Add a description

Проблема:
В текущей версии Chaotic нет возможности явно объявить поле типа USERVER_NAMESPACE::formats::json::Value для работы с JSON-данными (например, при маппинге jsonb из PostgreSQL).

Пример использования:
Нужно реализовать что-то вроде:

result.AsContainer<std::vector<T>>(userver::storages::postgres::kRowTag);

где T — структура, сгенерированная через Chaotic, а result содержит поле jsonb из pg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant