-
Notifications
You must be signed in to change notification settings - Fork 102
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
add mapping for text search types #31
Comments
I'm not really sure how to deal with this. If pg does not provide a typecast for it, then it's safe to give it an |
All things considered, wouldn't it be better to map What you think about returning |
Yup let's do that. |
Yes, it is much better for an unknown type to generate type |
A powerfull feature in postgres is the full text search, which can be perfectly used as a replacement of nosql similar features (elastic search, etc).
For this, postgres provides several types :
see https://www.postgresql.org/docs/current/static/datatype-textsearch.html
The udt names are the sames as the postgres type names :
gives
I don't know exactly which typescript type to map to these types, as usually theses types are manipulated with built-in functions/casts, like
::tsvector
orto_tsvector
and can not be inserted like simple strings.Perhaps the
any
type is the most appropriate for this ?The text was updated successfully, but these errors were encountered: