Skip to content
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

refactor: Adjust kotlinx-serialization & postgresql dependencies in core #1782

Closed
wants to merge 1 commit into from

Conversation

bog-walk
Copy link
Member

@bog-walk bog-walk commented Jul 4, 2023

Remove kotlinx-serialization-json dependency from exposed-core:

  • Remove json()/jsonb table functions that use implicit serializer<T>() (and place them in exposed-tests as samples).
  • Refactor jsonExtract() to either use columnType mapping for primitive types or user-defined serializer/deserializer, if provided, with JsonColumnType.

Make org.postgresql dependency in exposed-core compileOnly:

  • Refactor JsonColumnType.valueFromDB() to only check for PGobject if PostgreSQL is being used.

Add kotlinx-serialization-json dependency to exposed-tests:

  • Add json/jsonb table function overrides as sample for user-defined use.
  • Add jsonExtract() override as example of how it can be simplified for non-primitive types.
  • Refactor the 3 datetime modules' build files and test source similarly.

…in core

Remove kotlinx-serialization-json dependency from exposed-core:
- Remove json()/jsonb() table functions that use implicit serializer (and place
them in exposed-tests as samples).
- Refactor jsonExtract() to either use columnType mapping for primitive types
or user-defined serializer/deserializer, if provided, with JsonColumnType.

Make org.postgresql dependency in exposed-core compileOnly:
- Refactor JsonColumnType.valueFromDB() to only check for PGobject is PostgreSQ>
is being used.

Add kotlinx-serialization-json dependency to exposed-tests:
- Add json/jsonb table function overrides as sample for user-defined use.
- Add jsonExtract() override as example of how it can be simplified for
non-primitive tpyes.
- Refactor the 3 datetime modules' build files and test source similarly.
@bog-walk bog-walk requested a review from Tapac July 4, 2023 03:12
@bog-walk bog-walk closed this Jul 18, 2023
@bog-walk
Copy link
Member Author

Closed in favour of moving dependencies to a new module - #1793.

@bog-walk bog-walk deleted the bog-walk/adjust-json-dependency branch July 18, 2023 10:27
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

Successfully merging this pull request may close these issues.

1 participant