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