-
Notifications
You must be signed in to change notification settings - Fork 326
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
base: develop
Are you sure you want to change the base?
fix chaotic: postgresql timepointTz error #899
Conversation
chaotic/CMakeLists.txt
Outdated
LINK_LIBRARIES userver::universal | ||
LINK_LIBRARIES | ||
userver::universal | ||
$<$<BOOL:${USERVER_FEATURE_POSTGRESQL}>:userver::postgresql> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
от хаотика зависит core, не получится добавить зависимость от пг
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я думаю, этот файл должен быть в userver-postgresql
There was a problem hiding this comment.
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
No description provided.