Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peter-gergely-horvath/dyna4jdbc
A JDBC driver for running alternative JVM language scripts or console-oriented programs
https://github.com/peter-gergely-horvath/dyna4jdbc
Last synced: about 1 month ago
JSON representation
A JDBC driver for running alternative JVM language scripts or console-oriented programs
- Host: GitHub
- URL: https://github.com/peter-gergely-horvath/dyna4jdbc
- Owner: peter-gergely-horvath
- License: apache-2.0
- Created: 2016-03-11T14:56:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-19T08:41:11.000Z (almost 7 years ago)
- Last Synced: 2023-12-12T10:45:18.619Z (about 1 year ago)
- Language: Java
- Homepage: http://dyna4jdbc.org/
- Size: 1.94 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dyna4JDBC
A JDBC driver for running alternative JVM language scripts and external programs.
## Introduction
dyna4JDBC is a JDBC driver, that allows running alternative JVM language scripts (Groovy, JavaScript, Scala, Jython, Clojure, BeanShell, R (Renjin), JRuby etc.) or external console-oriented programs via the JDBC API.
Mainly targeted at allowing JDBC-enabled business intelligence applications to run various scripts instead of SQL easily, dyna4JDBC captures and parses the output of scripts/external programs and presents that as a standard JDBC `ResultSet`, allowing the output to be processed further for various purposes like building complex reports quickly and analysis with other tools.
## Documentation
For further information, please check out the
* [Official project home page](http://dyna4jdbc.org/)
* [Project Wiki Page](https://github.com/peter-gergely-horvath/dyna4jdbc/wiki)## Sample
NOTE: This is just a sample - the project's primary goal is empowering Java Reporting and ETL applications to call dynamic script langauges through the JDBC API, and NOT programmatic usage.
```java
package sample;import java.sql.*;
public class HelloWorldSample {
public static void main(String[] args) throws SQLException {
String url = "jdbc:dyna4jdbc:scriptengine:JavaScript";
try (Connection connection = DriverManager.getConnection(url)) {
try (Statement statement = connection.createStatement()) {
statement.executeUpdate(" var msg = 'Hello World'; ");
try (ResultSet resultSet = statement.executeQuery(" print(msg); ")) {
while (resultSet.next()) {
String string = resultSet.getString(1);System.out.println(string);
}
}}
}
}
}
```## Download
Please visit [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.github.peter-gergely-horvath%22%20a%3A%22dyna4jdbc%22) or the the [release download section](https://github.com/peter-gergely-horvath/dyna4jdbc/releases) to download the binary version of dyna4jdbc JDBC driver.
## Build Status
[![Build Status](https://travis-ci.org/peter-gergely-horvath/dyna4jdbc.svg?branch=master)](https://travis-ci.org/peter-gergely-horvath/dyna4jdbc)
Continuous integration platform is provided by [Travis CI](https://travis-ci.org/)