-
-
Notifications
You must be signed in to change notification settings - Fork 236
Add as_types to PostgresValues
#967
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: master
Are you sure you want to change the base?
Conversation
| #[cfg(feature = "postgres-array")] | ||
| Value::Array(ty, _) => array_type_to_pg_type(ty), | ||
| #[cfg(feature = "postgres-vector")] | ||
| Value::Vector(_) => todo!(), |
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.
I guess this is the reason it is still WIP?
for non built-in types I think there is no way we can statically know the type id.
which mean we need to make this function fallible (return Result) sad
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.
Yes. Perhaps we could allow users to specify the pgvector return type through a parameter.
| #[cfg(feature = "postgres-array")] | ||
| Value::Array(ty, _) => array_type_to_pg_type(ty), | ||
| #[cfg(feature = "postgres-vector")] | ||
| Value::Vector(_) => todo!(), |
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.
How to handle the mapping of pgvector?
| #[cfg(feature = "postgres-array")] | ||
| Value::Array(ty, _) => array_type_to_pg_type(ty), | ||
| #[cfg(feature = "postgres-vector")] | ||
| Value::Vector(_) => todo!(), |
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.
Yes. Perhaps we could allow users to specify the pgvector return type through a parameter.
|
I totally don't know that reviews need to be submitted first |
New Features
as_typestoPostgresValues