pymgclient icon indicating copy to clipboard operation
pymgclient copied to clipboard

Add the possibility to connect to a specific database

Open andrejtonev opened this issue 2 years ago • 2 comments

Add multi-tenant capability.

conn = mgclient.connect(address...., database="db")

will return a connection that is limited to the defined database.

andrejtonev avatar Mar 29 '24 15:03 andrejtonev

@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.

andrejtonev avatar Apr 05 '24 08:04 andrejtonev

FYI @Josipmrden this PR requires a fix in memgraph. Should be delivered via https://github.com/memgraph/memgraph/pull/1884

andrejtonev avatar Apr 05 '24 10:04 andrejtonev