You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Reset completely the database, stopping all connections and transactions.
25
+
self.cur.execute("ROLLBACK;")
26
+
self.cur.execute("SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'rpg' AND pid <> pg_backend_pid();")
27
+
self.conn.commit()
28
+
29
+
# Delete all tables, types and procedures.
30
+
self.cur.execute("DROP SCHEMA public CASCADE ; CREATE SCHEMA public;")
0 commit comments