for tbl in tbldef:
for name in tbldef[tbl].keys():
col_name = name
data_list = list()
for col_data in tbldef[tbl][col_name]:
data_list.append(col_data)
for col_data in data_list:
table_folder = REPO_FOLDER + f'{tbl}_{col_data}'
with My_Connection(CONN_TO) as conn:
# Предварительная отчистка папки out
print(delete_files_from_local(table_folder))
# Получаем данные из таблицы
sql = f'select {сol_name},{col_data} from {tbl}'
print(f'Загружаем данные из таблицы {tbl}...')
conn.execute(sql)