#!/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'])