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

Support for psycopg2.extras.execute_batch? #80

Open
osman-masood opened this issue Apr 11, 2017 · 1 comment
Open

Support for psycopg2.extras.execute_batch? #80

osman-masood opened this issue Apr 11, 2017 · 1 comment

Comments

@osman-masood
Copy link

Hello,

Is there any plan to add support for psycopg2.extras.execute_batch?

Thanks!

@lopuhin
Copy link
Member

lopuhin commented Apr 11, 2017

Hello @osman-masood !

There are no plans specifically for psycopg2.extras.execute_batch. But looking at the psycopg2 implementation here https://github.com/psycopg/psycopg2/blob/3b48918bef71162c05da9c16962ef79cab2df31a/lib/extras.py#L1165, it looks like this is just a pure-python function that can be ported as is. The tests are in https://github.com/psycopg/psycopg2/blob/28c489f17e8db69a19c0f3b6b4e57dc76b8bbfbc/tests/test_fast_executemany.py - so it you make a PR with this function ported + tests, I'll be glad to merge it! Or I'll get to it once I have some time, but no ETA, sorry.

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

No branches or pull requests

2 participants