si ça marche tu ne touches plus - ~Minh 2024~
This commit is contained in:
22
main.py
22
main.py
@@ -26,7 +26,6 @@ def initMonetDB(conn,cursor):
|
||||
reset_data_monetdb(conn,cursor)
|
||||
create_table_monetdb(conn,cursor)
|
||||
load_data_monetdb(conn,cursor)
|
||||
load_data_monetdb(conn,cursor)
|
||||
|
||||
def execMonetDB(conn,cursor,str):
|
||||
requete_monetdb(conn,cursor, str)
|
||||
@@ -39,8 +38,15 @@ def display_table(data, headers):
|
||||
for row in data:
|
||||
print(" | ".join(header.ljust(max_len) for header in row))
|
||||
|
||||
if __name__ == '__main__':
|
||||
#PostgreSQL
|
||||
def runMonetDB():
|
||||
conn, cursor =connect_monetdb()
|
||||
start = time.time()
|
||||
initMonetDB(conn,cursor)
|
||||
print(time.time() - start)
|
||||
#execMoneDB(conn,cursor,requeteSelect1MonetDB)
|
||||
disconnect_monetdb(conn, cursor)
|
||||
|
||||
def runPostgreSQL():
|
||||
reset_database_postgres()
|
||||
start_time = time.time()
|
||||
create_tables_postgres()
|
||||
@@ -48,10 +54,8 @@ if __name__ == '__main__':
|
||||
print(time.time() - start_time)
|
||||
#requete_postgres(str)
|
||||
|
||||
if __name__ == '__main__':
|
||||
#PostgreSQL
|
||||
runMonetDB()
|
||||
#runPostgreSQL()
|
||||
#MonetDB
|
||||
conn, cursor =connect_monetdb()
|
||||
start = time.time()
|
||||
initMonetDB(conn,cursor)
|
||||
print(time.time() - start)
|
||||
#execMoneDB(conn,cursor,requeteSelect1MonetDB)
|
||||
disconnect_monetdb(conn, cursor)
|
||||
Reference in New Issue
Block a user