forked from ToolJet/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/oracledb plugin (ToolJet#2388)
* oracledb initial commit - Added oracledb package * Implemented connection and operations * Working on oracle db integration * Implemented query & bulk operations * Fixed initial client reintialization problem * Added custom client library path option * Added oracle client library installation steps to dev docker file * Testing changed docker setup on cloud * Testing heroku app.json * Removed unwanted scripts from dockerfiles * Updated field label * update oracledb client lib for ec2 * update package-lock * refactoring code * Updated docs * Resolved some lint errors Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
- Loading branch information
1 parent
930b4bf
commit eaf9361
Showing
22 changed files
with
1,114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# you can list packages | ||
libaio1 | ||
|
||
# or include links to specific .deb files | ||
|
||
# or add custom apt repos (only required if using packages outside of the standard Ubuntu APT repositories) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
# Oracle DB | ||
|
||
ToolJet can connect to Oracle databases to read and write data. | ||
|
||
## Connection | ||
|
||
A Oracle DB can be connected with the following credentails: | ||
- **Host** | ||
- **Port** | ||
- **SID / Service Name** ( Database name must be a SID / Service Name ) | ||
- **Database Name** | ||
- **SSL** | ||
- **Username** | ||
- **Password** | ||
- **Client Library Path** ( Only need for local setup ) | ||
|
||
:::info | ||
You can also test your connection before saving the configuration by clicking on `Test Connection` button. | ||
::: | ||
|
||
Click on **Test connection** button to verify if the credentials are correct and that the database is accessible to ToolJet server. Click on **Save** button to save the data source. | ||
|
||
## Querying Oracle DB | ||
|
||
Once you have added a Oracle DB data source, click on `+` button of the query manager to create a new query. There are two modes by which you can query SQL: | ||
|
||
1. **[SQL mode](/docs/data-sources/oracledb#sql-mode)** | ||
2. **[GUI mode](/docs/data-sources/oracledb#gui-mode)** | ||
|
||
#### SQL mode | ||
|
||
SQL mode can be used to write raw SQL queries. Select SQL mode from the dropdown and enter the SQL query in the editor. Click on the `run` button to run the query. | ||
|
||
**NOTE**: Query should be saved before running. | ||
|
||
#### GUI mode | ||
|
||
GUI mode can be used to query Oracle database without writing queries. Select GUI mode from the dropdown and then choose the operation **Bulk update using primary key**. Enter the **Table** name and **Primary key column** name. Now, in the editor enter the records in the form of an array of objects. | ||
|
||
**Example**: `{{ [ {id: 1, channel: 33}, {id:2, channel:24} ] }}` | ||
|
||
Click on the **run** button to run the query. **NOTE**: Query should be saved before running. | ||
|
||
:::tip | ||
Query results can be transformed using transformations. Read our transformations documentation to see how: **[link](/docs/tutorial/transformations)** | ||
::: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
lib/*.d.* | ||
lib/*.js | ||
lib/*.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# Oracle DB | ||
|
||
Documentation on: https://docs.tooljet.com/docs/data-sources/oracledb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
// const oracledb = require('../lib'); | ||
|
||
describe('oracledb', () => { | ||
it.todo('needs tests'); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.