-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add function for registering as array #19
Conversation
@mzpqnxow thank you so much! I will merge and release shortly. |
Happy to help, thanks for your work on this project, it’s been very helpful to me If you can, please throw a note in here and/or close it out once you’ve released a new package so I know that I can clean up my constraints.txt :) |
For sure I will merge and update by tomorrow evening at the latest (Mon Feb 8th). |
@mahmoudimus no rush, but figured I would ping you. I figure you might have just been busy and forgot :) |
@mzpqnxow thank you so much! I have merged + release 1.8 coming soon. Really appreciate your patience. |
@mzpqnxow Release cut for version 1.8.0 and published to pypi |
This PR breaks any non-psycopg adapter uses. Additionally, the new |
You're right @fake-name, thanks for pointing it out. For now I can add I'll send a new PR for this |
Added PR #22, thanks again @fake-name for catching this |
I should clarify, though I alluded to it (kind of) in my previous note- @fake-name do you think it's necessary to provide the ability for users to use Curious about your take on this as well @mahmoudimus The only case where this approach would be desired/useful is one where (for whatever reason) the user isn't able to get psycopg2 to install on their system- maybe because @fake-name, are there PostgreSQL backends for SQLAlchemy that are pure Python? Or does every PostgreSQL interface for Python require |
I mean, I use Additionally, I have seen people who are using SQLAlchemy supports all of the above, so hard requiring any specific driver breaks all the others when they might have been working. I think the correct implementation here would be to determine how SQLAlchemy does it's imports, and just use that.
For clarification, the fact that it's not made explicit just makes the underlying issue more annoying to debug, it doesn't solve the actual problem (dependency on a package that's not available on the |
Fwiw I agree, we shouldn't depend on a particular driver. I will see if I can get to this tonight and propose a PR |
Per issue #9, the implementation suggested by @rmihael
Tested this and it works on CPython 3.7. I now get back an array of strings as opposed to an array of characters
You need to explicitly call this function with an engine so it can do the OID introspection on the database