Re:Thinking Psycopg3
by skeletal88 on Thursday March 12, 2020 @07:25AM
(#22555648)
Yes, but with other database access APIs I can just get a connection and execute a statement on it. Other APIs don't have an additional abstraction between the connection and the execute() method.
It's especially useless when executing anything besides SELECT. An UPDATE or INSERT shouldn't need a cursor.
It's especially useless when executing anything besides SELECT. An UPDATE or INSERT shouldn't need a cursor.