Skip to content

Commit

Permalink
Bump nf-sqldb@0.4.0 [ci fast]
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Apr 9, 2022
1 parent 3a9dad8 commit a137e93
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nf-amazon@1.7.0
nf-sqldb@0.3.0
nf-sqldb@0.4.0
nf-console@1.0.3
nf-google@1.1.4
nf-azure@0.13.1
Expand Down
9 changes: 5 additions & 4 deletions plugins/nf-sqldb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ The following options are available:
| Operator option | Description |
|--- |--- |
| `db` | The database handle. It must must a `sql.db` name defined in the `nextflow.config` file.
| `emitColumns | When `true` the column names in the select statement are emitted as first tuple in the resulting channel.
| `batchSize` | Performs the query in batches of the specified size. This is useful to avoid loading the complete resultset in memory for query returning a large number of entries. NOTE: this feature requires that the underlying SQL database to support `LIMIT` and `OFFSET` capability.
| `emitColumns` | When `true` the column names in the select statement are emitted as first tuple in the resulting channel.

### sqlInsert

Expand All @@ -104,13 +105,13 @@ NOTE: the target table (e.g. `SAMPLE` in the above example) must be created ahea

The following options are available:

| Operator option | Description |
|--- |--- |
| Operator option | Description |
|-------------------|--- |
| `db` | The database handle. It must must a `sql.db` name defined in the `nextflow.config` file.
| `into` | The database table name into with the data needs to be stored.
| `columns` | The database table column names to be filled with the channel data. The column names order and cardinality must match the tuple values emitted by the channel. The columns can be specified as a `List` object or a comma-separated value string.
| `statement` | The SQL `insert` statement to be performed to insert values in the database using `?` as placeholder for the actual values, for example: `insert into SAMPLE(X,Y) values (?,?)`. When provided the `into` and `columsn` parameters are ignored.
| `batch` | The number of insert statements that are grouped together before performing the SQL operations (default: `10`).
| `batchSize` | The number of insert statements that are grouped together before performing the SQL operations (default: `10`).
| `setup` | A SQL statement that's executed before the first insert operation. This is useful to create the target DB table. NOTE: the underlying DB should support the *create table if not exist* idiom (i.e. the plugin will execute this time every time the script is run).

## Query CSV files
Expand Down
4 changes: 4 additions & 0 deletions plugins/nf-sqldb/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
NF-SQLDB CHANGE-LOG
===================
0.4.0 - 9 Apr 2022
- Add support for batched queries via `batchSize` attribute
- Add `emitColumns` option fromQuery operator

0.3.0 6 Feb 2022
- Add support for AWS Athena

Expand Down
2 changes: 1 addition & 1 deletion plugins/nf-sqldb/src/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
Plugin-Class: nextflow.sql.SqlPlugin
Plugin-Id: nf-sqldb
Plugin-Provider: Seqera Labs
Plugin-Version: 0.3.0
Plugin-Version: 0.4.0
Plugin-Requires: >=21.08.0-edge

0 comments on commit a137e93

Please sign in to comment.