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

Commits on Jul 4, 2023

  1. refactor: Adjust kotlinx-serialization & org.postgresql dependencies …

    …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 committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    2e88b3b View commit details
    Browse the repository at this point in the history