BigData Workflow Engine for Hadoop, Hbase, Netezza, Pig, Hive, Cascalog ...
The SQL Module supports any database that has a JDBC driver.
Class: SQLModule
Exceptions: All methods throw RunttimeExceptions when an error happened on the database side.
Method | Description | Example |
---|---|---|
|
creates a Groovy SQL object and passes it to the closure as an argument, the sql object is automatically closed after the closure returns |
|
|
returns a Groovy SQL object |
|
|
Run a query on db and pass each Groovy Result Instance to the closure |
|
|
Only works for MySQL databases and is used to load large files rapidly via the mysql command line. The file must be TSV |
|
|
writes the results from the sql query into a temporary file |
|
|
writes the results from the sql query into a temporary file |
|
|
writes the results from the sql query into a temporary gzip file |
|
|
writes the results from the sql query into a temporary gzip file |
|
|
runs a sql update command | |
|
executes an arbritary sql command and returns a String response if any |
Method | Description | Example |
---|---|---|
|
creates a Groovy SQL object and passes it to the closure as an argument, the sql object is automatically closed after the closure returns | |
|
returns a Groovy SQL object | |
|
Run a query on db and pass each Groovy Result Instance to the closure | |
|
Same as above but returns a lazy sequence of result sets | |
|
Only works for MySQL databases and is used to load large files rapidly via the mysql command line. The file must be TSV | |
|
writes the results from the sql query into a temporary file | |
|
runs a sql update command | |
|
executes an arbritary sql command and returns a String response if any |
Method | Description | Example |
---|---|---|
|
creates a Groovy SQL object and passes it to the closure as an argument, the sql object is automatically closed after the closure returns |
|
|
returns a Groovy SQL object |
|
|
Run a query on db and pass each Groovy Result Instance to the closure |
|
|
Same as above but returns a lazy sequence of result sets | |
|
Only works for MySQL databases and is used to load large files rapidly via the mysql command line. The file must be TSV | |
|
writes the results from the sql query into a temporary file | |
|
runs a sql update command | |
|
executes an arbritary sql command and returns a String response if any |