Skip to content

fix chaotic: postgresql timepointTz error #899

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
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

Reavolt
Copy link

@Reavolt Reavolt commented Apr 1, 2025

No description provided.

LINK_LIBRARIES userver::universal
LINK_LIBRARIES
userver::universal
$<$<BOOL:${USERVER_FEATURE_POSTGRESQL}>:userver::postgresql>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

от хаотика зависит core, не получится добавить зависимость от пг

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Убрал зависимости сейчас у меня получилось собрать вот так в своем сервисе.

userver_target_generate_chaotic(${PROJECT_NAME}-chgen
ARGS
-n "/components/schemas/([^/]*)/=chaotic::{0}"
--generate-serializers
-I "${userver-postgresql_SOURCE_DIR}/include"
OUTPUT_DIR
${CMAKE_CURRENT_BINARY_DIR}
SCHEMAS
${SCHEMAS}
RELATIVE_TO
${CMAKE_SOURCE_DIR}
)
target_include_directories(${PROJECT_NAME}-chgen PRIVATE
${userver-postgresql_SOURCE_DIR}/include
)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@segoon Посмотрите? Просто данный функционал очень необходим.

#pragma once

#include <userver/chaotic/convert/to.hpp>
#include <userver/storages/postgres/io/chrono.hpp>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я думаю, этот файл должен быть в userver-postgresql

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Переместил в postgresql/include/userver/storages/postgres

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

Successfully merging this pull request may close these issues.

2 participants