Skip to content

Allow passing custom JVM arguments via jvm_args parameter #90

@HenryNebula

Description

@HenryNebula

Description

Legacy issue: baztian/jaydebeapi#161

Tier: P0 — shared-bug

Our connect() function still lacks a jvm_args parameter. The JVM arguments are hardcoded in _jdbc_connect_jpype() with no way for users to pass custom JVM args like -Duser.timezone. This is the same limitation as the upstream library.

Expected Behavior

Users should be able to pass custom JVM arguments when calling connect():

conn = jaydebeapi.connect(
    'org.h2.Driver',
    'jdbc:h2:mem:test',
    ['sa', ''],
    'h2.jar',
    jvm_args=['-Duser.timezone=America/Toronto']
)

Current Behavior

No way to pass custom JVM arguments. Users who need settings like -Dfile.encoding=UTF-8 or -Duser.timezone have no supported way to do so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions