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

Allow arguments to pass extra JVM arguments ? #161

Open
ikus060 opened this issue Jul 10, 2020 · 3 comments
Open

Allow arguments to pass extra JVM arguments ? #161

ikus060 opened this issue Jul 10, 2020 · 3 comments

Comments

@ikus060
Copy link

ikus060 commented Jul 10, 2020

For H2DB, I need to pass extra arguments to the JVM to define the default timezone of the database: -Duser.timezone="America/Toronto"
Looking at the code, I don't see a proper way to pass this arguments to the JVM. Would it be possible to add an optional parameters to the connect(). Something like jvm_args ?

@baztian
Copy link
Owner

baztian commented Jul 15, 2020

Hi @ikus060, I agree. There is #116 but it needs some polishing. Further on I'm not sure whether it would be even nicer to have a more general jvm_args param and additionally a jvm_properties param to allow for providing a python dict with the Java system properties like this

jaydebeapi.connect(.... jvm_args="-Xbla", jvm_properties={"user.timezone":"America/Toronto"})

@ikus060
Copy link
Author

ikus060 commented Jul 15, 2020

@baztian #116 Is what I was looking for. But at the same time, I see it's would not be possible to connect to different database with different arguments.
For the look of it, I would need to start different instance of jpype for each database. I'm not sure jaydebeapi is supporting this usecase.

@dschiavu
Copy link

dschiavu commented Mar 4, 2022

This would be nice to have indeed. Is anyone working/looking at #116 at all?

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

3 participants