add BASH to README.md
parent
9f52cae834
commit
c87e01acff
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
import mysql.connector
|
import mysql.connector
|
||||||
import datetime
|
import datetime
|
||||||
import smtplib
|
import smtplib
|
||||||
|
|
@ -11,16 +12,9 @@ from dotenv import load_dotenv
|
||||||
|
|
||||||
|
|
||||||
def get_tables_from_db(connection):
|
def get_tables_from_db(connection):
|
||||||
"""
|
|
||||||
Holt die Liste der zu überprüfenden Tabellen, die 'RAW.' im Namen enthalten
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
list: Liste der Tabellennamen
|
|
||||||
"""
|
|
||||||
try:
|
try:
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
# Holen aller Tabellen in der Kunden-Datenbank
|
|
||||||
cursor.execute("SHOW TABLES FROM Kunden")
|
cursor.execute("SHOW TABLES FROM Kunden")
|
||||||
tables = []
|
tables = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue