How to use the jdbc/lib/jinst.getInstance function in jdbc

To help you get started, we’ve selected a few jdbc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cube-js / cube.js / packages / cubejs-jdbc-driver / driver / JDBCDriver.js View on Github external
getJdbcProperties() {
    const java = jinst.getInstance();
    const Properties = java.import('java.util.Properties');
    const properties = new Properties();

    for(let name in this.config.properties) {
      properties.putSync(name, this.config.properties[name]);
    }

    return properties;
  }