pymgclient
pymgclient copied to clipboard
Add the possibility to connect to a specific database
Add multi-tenant capability.
conn = mgclient.connect(address...., database="db")
will return a connection that is limited to the defined database.
@kgolubic We have added the ability to define the landing database via pymgclient.
mgclient.connect(database="your db", ...)
The connection is then locked to the defined db, you cannot switch to another one later on.
FYI @Josipmrden this PR requires a fix in memgraph. Should be delivered via https://github.com/memgraph/memgraph/pull/1884