plein de truc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user