Using IntelliJ Plugin for Development
Browse tables and execute queries on your Oracle NoSQL Database Cloud Service instance or simulator from IntelliJ.
- View the tables in a well-defined tree structure with Table Explorer.
- View information on columns, indexes, primary key(s), and shard key(s) for a table.
- View column data in a well-formatted JSON Structure.
- Create tables using form-based schema entry or supply DDL statements.
- Drop tables.
- Add new columns using form-based entry or supply DDL statements.
- Drop Columns.
- Create Indexes.
- Drop Indexes.
- Execute SELECT SQL queries on a table and view query results in tabular format.
- Execute DML statements to update, insert, and delete data from a table.
This article has the following topics:
Setting Up IntelliJ Plug-in
Learn how to set up the IntelliJ plug-in for Oracle NoSQL Database Cloud Service instance or simulator.
Creating a NoSQL Project in IntelliJ
Learn how to create a NoSQL project in IntelliJ.
- Open IntelliJ IDEA. Click File > New > Project.
- Enter a value for Project Name and Project Location, and click Create.
- Once your NoSQL project is created, you can browse the example java files from the Project Explorer window.
Connecting to Oracle NoSQL Database Cloud Service from IntelliJ
Learn how to connect your NoSQL project to Oracle NoSQL Database Cloud Service using the IntelliJ plugin
Connecting to Oracle NoSQL Database Cloud Simulator from IntelliJ
Learn how to connect your NoSQL project to Oracle NoSQL Database Cloud Simulator using the IntelliJ plugin.
Managing Tables Using the IntelliJ Plugin
Learn how to create tables and view table data in Oracle NoSQL Database Cloud Service or Oracle NoSQL Database Cloud Simulator from IntelliJ.
Perform DDL operations using IntelliJ
You can use IntelliJ to perform DDL operations.
CREATE TABLE
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click the connection name and choose Create Table.
- In the prompt, enter the details for your new table. You can create the
Oracle NoSQL Database table in two modes:
- **Simple DDL Input** : You can use this mode to create the table declaratively, that is, without writing a DDL statement.
- **Advanced DDL Input** : You can use this mode to create the table using a DDL statement.
- You have the option to view the DDL statement before creating. Click Show DDL to view the DDL statement formed based on the values entered in the fields in the Simple DDL input mode. This DDL statement gets executed when you click Create.
- Click Create to create the table.
DROP TABLE
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click on the table that you want to drop. Choose Drop Table.
- A confirmation window appears, click Ok to confirm the drop action.
CREATE INDEX
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click on the table where index need to be created. Choose Create Index.
- In the Create Index panel, enter the details for creating an index without writing any DDL statement. Specify the name of the index and the columns to be part of the index.
- Click Add Index.
DROP INDEX
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Click on the target table to see the listed columns, Primary Keys, Indexes and Shard Keys.
- Locate the target-index which has to be dropped and right-click on it. Click Drop Index.
- A confirmation window appears, click Ok to confirm the drop action.
ADD COLUMN
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click on the table where column needs to be added. Choose Add Column.
- You can add new COLUMNs in two modes:
- Simple DDL Input : You can use this mode to add new columns without writing a DDL statement.
- Advanced DDL Input : You can use this mode to add new columns into the table by supplying a valid DDL statement.
- In both the modes, specify the name of the column and define the column with its properties - datatype, default value and whether it is nullable.
- Click Add Column.
DROP COLUMN
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Click on the target table to see the listed columns, Primary Keys, Indexes and Shard Keys.
- Locate the target-column which has to be dropped and right-click on it. Click Drop Column.
- A confirmation window appears, click Ok to confirm the drop action.
Perform DML operations using IntelliJ
You can add data, modify existing data and query data from tables using IntelliJ plugin.
Insert data
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click on the table where a row needs to be inserted. Choose Insert Row.
- In the Insert Row panel, enter the details for inserting a new row. You can
INSERT a new ROW in two modes:
- Simple Input : You can use this mode to insert the new row without writing a DML statement. Here a form based row fields entry is loaded, where you can enter the value of every field in the row.
- Advanced JSON Input : You can use this mode to insert a new row into the table by supplying a JSON Object containing the column name and its corresponding value as key-value pairs.
- Click Insert Row.
Modify Data - UPDATE ROW/DELETE ROW:
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click on the table where a row needs to be inserted. Choose Browse Table.
- In the textbox on the left, enter the SQL statement to fetch data from your table. Click Execute to run the query.
- To view individual cell data separately, click the table cell.
- To perform DML operations like Update and Delete Row, right-click on the
particular row. Pick your option from the context-menu that appears.
- Delete Row : A confirmation window appears, click Ok to delete the row.
- Update Row : A separate HTML panel opens below the listed rows,
containing the column names and its corresponding value in a
form-based entry and as a JSON key-pair object. You can choose
either of the two methods and supply new values.
Note:
In any row, PRIMARY KEY and GENERATED ALWAYS AS IDENTITY columns cannot be updated.
Query tables
- Locate the Schema Explorer, and click the Refresh icon to reload the schema.
- Right click on the table and choose Browse Table.
- In the textbox on the left, enter the SELECT statement to fetch data from your table.
- Click Execute to run the query. The corresponding data is retrieved from the table.
- Right click on any row and click View JSON to view the entire row object in the JSON format.
- Click Show Query Plan to view the execution plan of the query.
Using IntelliJ Plugin for Development
Copyright © 2022, Oracle and/or its affiliates.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Access to Oracle Support
Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired.