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

drogon_ctl create model treats charvar[] (arrays) as std::string. #2026

Open
Ayman250 opened this issue May 13, 2024 · 2 comments
Open

drogon_ctl create model treats charvar[] (arrays) as std::string. #2026

Ayman250 opened this issue May 13, 2024 · 2 comments

Comments

@Ayman250
Copy link

I have columns of type character varying[] in postgres and the classes generated by create model treat them as strings. Is there a reason for this? What is the proper way to handle columns of charvar arrays?

@Ayman250
Copy link
Author

This doesn't seem to work out of the box, for now I have to parse it in and out of a string from the HttpRequest and change the DB column to charvar.

@an-tao
Copy link
Member

an-tao commented May 14, 2024

I'm not sure but you could try the drogon::orm::ArrayParser to do this.

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

2 participants