Make _wrap_json public for every connector? #1479
denisSurkov
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Sounds ok to me. We could even move them out of the class into normal functions (in all connectors) and add some unit tests. Are you open to creating a PR? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes I need to extend connector. I cannot inherit from existing connector, like PsycopgConnector. But I want to reuse existing simple _wrap_json methods.
Is it okey to ask to make them as
@classmethodand public (without_before function name)?Why I need to extend existing connector
I want to reuse same sqlalchemy open session with transaction. So I make something like this:
And then call it like this:
Any tips how to make
ReuseConnectoreasier to implement are welcome. Thank you.Beta Was this translation helpful? Give feedback.
All reactions