Skip to content

Support named databases #33

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mitch-b
Copy link
Contributor

@mitch-b mitch-b commented Jun 13, 2025

This probably is a breaking change with the mid-signature adjustment to the Memgraph object from the toolkit.

If that needs to be adjusted, let me know. It made more sense where I placed it than after the dictionary, but maybe it belongs in the dictionary as a parameter? Looking for guidance.

@katarinasupe
Copy link
Contributor

Hi @mitch-b, thank you for the contribution.
As @antejavor is the maintainer, he will take a look as soon as he can. Currently, he is on vacation, but will be back soon! I hope this is not a blocker for you.

@mitch-b
Copy link
Contributor Author

mitch-b commented Jun 13, 2025

Hi @mitch-b, thank you for the contribution. As @antejavor is the maintainer, he will take a look as soon as he can. Currently, he is on vacation, but will be back soon! I hope this is not a blocker for you.

Thanks, @katarinasupe, we'll use our fork until we can get it merged.

@mitch-b
Copy link
Contributor Author

mitch-b commented Jun 19, 2025

The thought occurred to me to have an alternate constructor with a MemgraphSettings(?) object to use for future extension and mark the existing as deprecated.

Copy link
Contributor

@antejavor antejavor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi again @mitch-b, thanks for contributing 🦾 🚀 So I am more for making this part of the driver dict config, I have nothing against the ENV, we can have them and pack them into the dict depending on the type of env.

Also note for this PR, I am adding test to CI, After we merge CI test we will proceed with this.

@@ -154,6 +154,15 @@ docker run --rm \
mcp-memgraph:latest
```

### Docker environment variables
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we are adding them to the README, which we should have done previously, can you add them to a separate section called configuration, and then Envs as a subtitle, since these envs also work without Docker?

@@ -13,6 +13,7 @@ def __init__(
url: str = None,
username: str = None,
password: str = None,
database: str = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect this to live inside the driver configuration and not be visible inside the driver signature, as you have assumed.

Maybe we can group the ENVS that are driver specific, there is a lot of configuration on that side, so we do not continue to expand this signature, and instead just unpack the ENVS in MCP and pass the dictionary. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants