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

@@ -105,6 +105,7 @@ def load_data_monetdb():
def requete_monetdb(str):
start_time = 0
end_time = 0
size = 0
try:
connect=connect_monetdb()
with connect[0] as conn:
@@ -113,11 +114,12 @@ def requete_monetdb(str):
cursor.execute(str)
conn.commit()
end_time = time.time()
size = cursor.rowcount
cursor.close()
conn.close()
except(pymonetdb.DatabaseError, Exception) as error:
print(error)
return end_time-start_time
return end_time-start_time,size
def reset_data_monetdb():
start_time = 0