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

use custom JSON type for database for more generic support #389

Merged
merged 3 commits into from
Apr 25, 2024
Merged

Conversation

pmeier
Copy link
Member

@pmeier pmeier commented Apr 13, 2024

Offline report by @nenb. sqlalchemy.types.JSON supports

Thus, using Ragna with a DB like snowflake is impossible.

This PR implements a custom Json type that augments types.String that does nothing but serializing incoming values and deserializing them again on the way out.

This breaks BC so we shouldn't include this in any potential bug fix release until 0.3.

@pmeier pmeier requested a review from nenb April 13, 2024 21:06
Copy link
Contributor

@nenb nenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pmeier, this looks like the correct approach. I'll confirm this early next week.

@pmeier
Copy link
Member Author

pmeier commented Apr 15, 2024

Lint errors are unrelated. See #390.

@pmeier pmeier added this to the 0.3.0 milestone Apr 24, 2024
@pmeier pmeier merged commit 7963453 into main Apr 25, 2024
10 checks passed
@pmeier pmeier deleted the json-db branch April 25, 2024 18:38
pierrotsmnrd added a commit that referenced this pull request May 13, 2024
commit 04168ab
Author: Arjun Verma <arjunverma.oc@gmail.com>
Date:   Wed May 1 12:35:41 2024 +0530

    #373 Include documentation_helpers in module (#395)

    Co-authored-by: Philip Meier <github.pmeier@posteo.de>

commit f947f2d
Author: Philip Meier <github.pmeier@posteo.de>
Date:   Mon Apr 29 17:08:40 2024 +0200

    bump mypy to 1.10 (#398)

commit e0fe014
Author: Kevin Klein <7267523+kklein@users.noreply.github.com>
Date:   Mon Apr 29 12:52:49 2024 +0200

    Add instructions to install from conda-forge. (#396)

    Co-authored-by: Philip Meier <github.pmeier@posteo.de>

commit 7963453
Author: Philip Meier <github.pmeier@posteo.de>
Date:   Thu Apr 25 20:38:50 2024 +0200

    use custom JSON type for database for more generic support (#389)

commit 3a5b82d
Author: William Black <125844868+smokestacklightnin@users.noreply.github.com>
Date:   Wed Apr 24 01:37:48 2024 -0700

    Remove Mosaic Assistant (#387)
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.

None yet

2 participants