2021.11 #50

Merged
edraft merged 10 commits from 2021.11 into master 2021-11-30 12:03:04 +01:00
2 changed files with 1 additions and 4 deletions
Showing only changes of commit 127c67e566 - Show all commits

View File

@ -6,7 +6,7 @@ from cpl_core.console.foreground_color_enum import ForegroundColorEnum
from cpl_core.database.connection.database_connection_abc import \
DatabaseConnectionABC
from cpl_core.database.database_settings import DatabaseSettings
from cpl_core.utils import CredentialManager
from cpl_core.utils.credential_manager import CredentialManager
from mysql.connector.abstracts import MySQLConnectionAbstract
from mysql.connector.cursor import MySQLCursorBuffered

View File

@ -1,7 +1,6 @@
from typing import Optional
from cpl_core.console.console import Console
from cpl_core.database.connection.database_connection import DatabaseConnection
from cpl_core.database.connection.database_connection_abc import \
DatabaseConnectionABC
@ -31,9 +30,7 @@ class DatabaseContext(DatabaseContextABC):
def connect(self, database_settings: DatabaseSettings):
self._db.connect(database_settings)
Console.write_line(f"Ts: {self._tables}")
for table in self._tables:
Console.write_line(f"{table}, {table.get_create_string()}")
self._db.cursor.execute(table.get_create_string())
def save_changes(self):