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

Is it possible to configure a default JDBC connection in the kernelspec? #7518

Closed
jdavidheiser opened this issue Jun 12, 2018 · 4 comments
Closed

Comments

@jdavidheiser
Copy link
Contributor

I'd like to define multiple SQL kernelspecs, each of which defaults to a different database. Is it possible to configure this in the kernel json, possibly through command line arguments or environment variables?

I saw #2506 about making this configurable, but that looked like it was through the UI, and I am only using the Beaker SQL kernel without the rest of the UI elements.

@scottdraves
Copy link
Contributor

Hi James, interesting idea, I haven't thought about that.
If you want to do that it would have to get the default database from the kernel.json file.
That file has the parameters to the JVM, so you could set a property there.
It would be a one-line change to check for a property as the source of the default data source.
This isn't on our agenda but I don't see much downside, so I would welcome a PR.

@jdavidheiser
Copy link
Contributor Author

Java is pretty far outside my wheelhouse, but this is important enough that I'm willing to take a stab at it. Unfortunately, I'm running into #7042 and not familiar enough with these build systems to have much of an idea where to go from here.

@scottdraves
Copy link
Contributor

scottdraves commented Jun 13, 2018 via email

@jdavidheiser
Copy link
Contributor Author

Installing maven did the trick, and I was able to get something together and working.

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

No branches or pull requests

2 participants