-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
issues-336 Init array support #390
issues-336 Init array support #390
Conversation
@Sytten @billy1624 @tyt2y3 This is Draft PR for add support Array type |
Related to #336 This is basically proposition #2 and it looks well done (great job @ikrivosheev!). |
I have one question. How can we work with array of arrays? |
@Sytten, have any experience working with array of arrays in PostgreSQL? For me, I don't like the idea of having array datatype in database, let alone array of arrays lolll We might want to leave array of arrays for later? |
The code looks nice! @ikrivosheev please continue implementing array support :) |
@billy1624 I don't think array of arrays is a thing in postgres. I never saw it supported anywhere in any-case so no worries there. I would say custom types are much more common (these days it is mostly for enums and composite keys) and arrays of custom types do happen once in a while. It is not as common now that json support is very well done, but it can happen and so it should be supported at some point. |
@Sytten I add support for array to sea-query-binder. |
@Sytten hello! I have done some features:
Can you review this part? |
Will do tomorrow, pretty busy today. Ping me again if I forget |
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 don't have much to say at the moment, it is headed in the right direction for this support.
That being said I am not sure we really want to do this in the current state of things.
Personally I would move to a trait based system instead of the enum and I would consolidate the driver/binder mess before thinking about array support.
In the long run, I support adding a Value trait and redesigning the Value API from ground up. However, at the moment I think we can extend the functionality based on (current) Value enum. Any comments? @tyt2y3 |
I think about the current implementation and find it bad. A lot of code... Very hard to maintain. @billy1624 if you want, I can create PR with my peace of code. |
It's quite a lot of boilerplate indeed, and I have the same concern over maintainability.
What do you have in mind @ikrivosheev ? |
5d9d694
to
79fab4a
Compare
I close this PR. Better solution is: #467 |
PR Info
Depends:
Adds
Todo:
postgres
driversea-query-driver
sea-query-binder
CommonQueryBuilder
Value
items