I'd love to switch database or connect to specific ones for specific queries or based on the current logged in user to apply multiple tenant that are actually separated. Couldn't find it in the driver docs so i hope Py2Neo has something planned. @technige do you know about this?
Thank you for the clarification Elaine! Had the same exact question over here. We'll switch the default database on an as needed basis. Hope this will be addressed in py2neo in the near future.
Can confirm that technige's recommendation works. Adding 'name' in the graph database connector populates the specified graph and overrides the default setting.
from py2neo import Graph >>> sales = Graph("bolt+s://g.example.com:7687", name="target db")