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.

17 lines
509 B

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2023/4/8 13:19
# @Author : old tom
# @File : constant.py
# @Project : futool-tiny-datahub
# @Desc :
from collections import namedtuple
# 数据库类型
DB_TYPE = ['oracle', 'mysql', 'postgresql', 'sqlserver']
# 需要执行select 1 from dual的数据库
DUAL_DB_TYPE = ['oracle', 'mysql']
# 命名元组处理传参
# 数据库配置
ds_conf_param = namedtuple('datasource_conf', ['db_type', 'user', 'password', 'host', 'port', 'database'])