Skip to content

Conversation

@denisSurkov
Copy link

@denisSurkov denisSurkov commented Nov 9, 2025

This way wrap_json is easier to reuse.

This is simple proof of concept with Psycopg connector. If it looks okey, I will do the same with other connectors.

I don't want to place _wrap_json somewhere else. I think it is convenient to call it with context this is wrap json related to psycopg (or other connector).

Discussion: #1479

Successful PR Checklist:

  • Tests
    • (not applicable?)
  • Documentation
    • (not applicable?)

PR label(s):

This way wrap_json is easier to reuse
@github-actions github-actions bot added the PR type: feature ⭐️ Contains new features label Nov 9, 2025
assert result["a"].obj == {"b": "c"}


def test_wrap_json_makes_correct_psycopg_dict__inner_list():
Copy link
Author

Choose a reason for hiding this comment

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

Tests are pretty simple and straightforward. But if you know how to make it better, i will do

@denisSurkov
Copy link
Author

@medihack , I made PoC with wrap_json.
If it looks okey, I will do the same with other connectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR type: feature ⭐️ Contains new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant