01: Initial commit with neo4j
This commit is contained in:
10
app/core/neo4j.py
Normal file
10
app/core/neo4j.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user