update all commands and havent tested

This commit is contained in:
Minh VU
2024-12-03 19:34:27 +01:00
parent fd1712226a
commit f221ed67db
5 changed files with 83 additions and 20 deletions

11
main.py
View File

@@ -1,5 +1,6 @@
from MonetDB import *
from PostgreSQL import *
import re
#Monet DB
requeteSelect1MonetDB = """SELECT * FROM flights WHERE "AIRLINE" = 'AA';"""
@@ -26,11 +27,11 @@ if __name__ == '__main__':
#PostgreSQL
#create_tables_postgres()
#create_data_postgres()
requete_postgres(str)
#requete_postgres(str)
#MonetDB
conn, cursor =connect_monetdb()
create_table_monetdb(cursor)
create_data_monetdb(cursor)
requete_monetdb(cursor, str)
disconnect_monetdb(conn, cursor)
create_table_monetdb(conn,cursor)
#create_data_monetdb(conn,cursor)
#requete_monetdb(conn,cursor, str)
#disconnect_monetdb(conn, cursor)