Added: Full Postgres Support

This commit is contained in:
2025-03-10 11:34:34 +01:00
parent a14dd8553b
commit 6a23a47ed2
4 changed files with 36 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
import pandas as pd
import pprint
import sys
import sys
import getpass
sys.path.append('../learnlytics/')
from dbmodel import *
@@ -32,7 +33,9 @@ groups = {
print(df)
#init_db('WiSe_24_25.db')
init_postgres('postgresql://admin:admin@100.96.135.91/learnlytics')
name = getpass.getuser()
create_database(name)
init_postgres(name, 'postgres.cyperpunk.de', 'dergrumpf', '1P2h3i4lon$%', 5432)
db.drop_tables(tables)
db.create_tables(tables)
# Create Class