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
706 B

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2023/4/9 15:37
# @Author : old tom
# @File : local_db_conf.py
# @Project : futool-tiny-datahub
# @Desc : 数据库连接配置
from datahub.datasource.constant import ds_conf_param
from common.fudb.connectors.connector_factory import ConnFactory
from py2neo import Graph
# 系统使用数据库配置 数据库类型 用户名 密码 host 端口 默认数据库
local_db = ds_conf_param('postgresql', 'postgres', 'root@123', 'localhost', 5432, 'postgres')
local_conn = ConnFactory(local_db)
# neo4j配置
#graph = Graph("bolt://localhost:7687", auth=("neo4j", "havana-academy-emerald-herman-scale-5422"))