2 ms·
> A particular irritant is that most (all?) db APIs make it impossible to use parametrized queries with IN clauses Psycopg2 has a generic adaptation of iterabl
by masklinn 10y ago
> A particular irritant is that most (all?) db APIs make it impossible to use parametrized queries with IN clauses
Psycopg2 has a generic adaptation of iterables to a form suitable for IN, but it's hand-rolled: https://github.com/psycopg/psycopg2/blob/732ea90a4ff85f6d0cca8df6e3dc9d18bfd1c8b4/lib/extensions.py#L121 https://github.com/psycopg/psycopg2/blob/732ea90a4ff85f6d0cc...
Real convenient though.