Files
location_service/app/core/neo4j.py
2026-02-02 23:45:28 +05:30

11 lines
220 B
Python

from neo4j import GraphDatabase
from app.core.config import settings
driver = GraphDatabase.driver(
settings.NEO4J_URI,
auth=(settings.NEO4J_USER, settings.NEO4J_PASSWORD)
)
def get_driver():
return driver