Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to connect to a specific database #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andrejtonev
Copy link

Add multi-tenant capability.

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

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

@andrejtonev andrejtonev marked this pull request as ready for review April 5, 2024 08:43
@andrejtonev andrejtonev self-assigned this Apr 5, 2024
@andrejtonev andrejtonev added the Docs needed Docs needed label Apr 5, 2024
@andrejtonev
Copy link
Author

@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 andrejtonev marked this pull request as draft April 5, 2024 08:53
@andrejtonev andrejtonev marked this pull request as ready for review April 5, 2024 10:08
@andrejtonev
Copy link
Author

FYI @Josipmrden this PR requires a fix in memgraph.
Should be delivered via memgraph/memgraph#1884

@gitbuda gitbuda mentioned this pull request Aug 17, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs needed Docs needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant