The documentation for the Pandas function to_sql()
available for DataFrame
objects (see to_sql()
documentation) does not state that a commit()
call on the connection is needed (or recommended) to persist the update.
Can I safely assume that DataFrame.to_sql('table_name', con)
will always automatically commit the changes (like in: con.commit()
)?