def tables_exist(fake_today,prediction_window,feature_timestamp):
table_list = pd.read_sql('''
SELECT
table_name
FROM
information_schema.tables
WHERE
table_schema = 'feature_tables' AND
table_name LIKE 'features_train_{}_{}_at_{}'
ORDER BY
table_name desc
LIMIT
1;
'''.format(fake_today, prediction_window, feature_timestamp), con)
if len(table_list) > 0:
return True
else:
return False
database_checker.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录