Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

python - Neomodel: specify neo4j database name in connection string

In the neomodel documentation it's possible to specify the neo4j connection string using the following statement:

from neomodel import config
config.DATABASE_URL = 'bolt://neo4j:neo4j@localhost:7687'

On neo4j 4.1, I am using multiple databases under the same server. I would like to specify the database I am using either in the connection string or somewhere else.

In py2neo I can do something like this:

graph = Graph(host='localhost', port=7687, auth=('neo4j','pwd'), name='dbname')

Is there any way to do this in neomodel?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...