Skip to content

Add support to write simple type collections as arrays #26

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

Closed
mp911de opened this issue Nov 26, 2018 · 2 comments
Closed

Add support to write simple type collections as arrays #26

mp911de opened this issue Nov 26, 2018 · 2 comments
Assignees
Milestone

Comments

@mp911de
Copy link
Member

mp911de commented Nov 26, 2018

Postgres supports ARRAY columns that allow storing multiple values in a field. #22 allows reading these values. We need a possibility how to store these. The assumption for Collection-typed fields is that these values are stored using relations and not within a single column.

@mp911de
Copy link
Member Author

mp911de commented Dec 3, 2018

Requires #30 as RelationalConverter considers String[].class and List.class as entities.

mp911de added a commit that referenced this issue Dec 3, 2018
We now support custom conversions via R2dbcCustomConversions. Custom conversions introduces simple types that depend on the used dialect. Custom conversions and simple types are held in RelationalConverter and MappingContext.

Simple types and conversions are used by DatabaseClient and repository support to properly apply registered converters and support native types such as array-columns.

Related tickets: #22, #26.
@mp911de mp911de assigned mp911de and schauder and unassigned mp911de Dec 3, 2018
@mp911de mp911de added this to the 1.0.0 M1 milestone Dec 4, 2018
schauder pushed a commit that referenced this issue Dec 4, 2018
We now support custom conversions via R2dbcCustomConversions. Custom conversions introduces simple types that depend on the used dialect. Custom conversions and simple types are held in RelationalConverter and MappingContext.

Simple types and conversions are used by DatabaseClient and repository support to properly apply registered converters and support native types such as array-columns.

Related tickets: #22, #26.
@mp911de mp911de changed the title Add support to write mapped collections as arrays Add support to write simple type collections as arrays Dec 5, 2018
schauder pushed a commit that referenced this issue Dec 7, 2018
We now support custom conversions via R2dbcCustomConversions.
Custom conversions introduces simple types that depend on the used dialect.
Custom conversions and simple types are held in RelationalConverter and MappingContext.

Simple types and conversions are used by DatabaseClient and repository support to properly apply registered converters and support native types such as array-columns.

Related tickets: #22, #26.
Original pull request: #31.
@schauder
Copy link
Contributor

schauder commented Dec 7, 2018

Done.

@schauder schauder closed this as completed Dec 7, 2018
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