plein de truc

This commit is contained in:
Rochas
2024-12-21 19:09:39 +01:00
parent c125d4ad6f
commit 684c318a66
13 changed files with 920 additions and 40 deletions

View File

@@ -111,11 +111,12 @@ def requete_postgres(str):
cursor.execute(str)
conn.commit()
end_time = time.time()
size = cursor.rowcount
cursor.close()
conn.close()
except (psycopg2.DatabaseError, Exception) as error:
print(error)
return end_time-start_time
return end_time-start_time, size
def reset_database_postgres():
start_time = 0