-
Notifications
You must be signed in to change notification settings - Fork 46
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
How to choose C++ type for Postgres built-in types? #290
Comments
Found some examples in source code and tried to implement support for "inet". Unfortunately I don't know how to test |
Hi! Thanks for trying to implement the IO. Yes, this is very close to the proper implementation. A good description for the binary representation may be found here. Since the type has a dynamic size of the binary representation, the I spent some time last night implementing a more general solution. So feel free to use your solution for a while until the out-of-the-box solution is on the way. |
Thank you very much! It is great. p.s. About I tried concatenate variable (analogous to SELECT example from documentation), but this doesn't compile:
Maybe there other ways to trigger |
Could you please share the compilation error? Also, in the case of |
Sorry! As you said, compilation error is related to missing p.s. Thank you for the library! I use |
Which C++ type should I use if I want to read column of type "inet"? Is it as simple as using std::string for "text"?
Which actions must be performed to be able to read column value into variable of type
boost::asio::ip::network_v4
?The text was updated successfully, but these errors were encountered: