You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
"""
|
|
|
|
|
配置文件,定义数据库连接参数和需要提取数据的目标表格列表。
|
|
|
|
|
|
|
|
|
|
变量:
|
|
|
|
|
DB_PARAMS (dict[str, str]): 数据库连接参数,包含数据库主机、端口号、名字、用户名和密码。
|
|
|
|
|
TABLES (List[str]): 需要提取数据的目标表格列表。
|
|
|
|
|
|
|
|
|
|
注意:
|
|
|
|
|
请根据实际情况修改DB_PARAMS和TABLES的值。
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
# 定义数据库连接参数
|
|
|
|
|
DB_PARAMS = {
|
|
|
|
|
'host': 'localhost',
|
|
|
|
|
'port': '5432',
|
|
|
|
|
'database': 'Dbname',
|
|
|
|
|
'user': 'postgres',
|
|
|
|
|
'password': 'password'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# 定义目标数据表
|
|
|
|
|
TABLES = [
|
|
|
|
|
'app01_baidudata', 'app01_beijingweekdata', 'app01_jijindata',
|
|
|
|
|
'app01_liuganweekdata', 'app01_stockdata'
|
|
|
|
|
]
|