Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Automatic SQL formatting (w/ arbori?) after saving the object

AndréBNov 4 2021

Hi all
I've been reading a few articles on arbori and how it helps formatting code in SQL Developer. From what I understood, SQL Dev is written in Java, so it probably uses some kind of arbori library.
Without talking too much about the use case: would it be possible to format the code after saving the object (view, package, ...) directly within Oracle?
Like:
Type
CREATE VIEW v#my_test AS (SELECT 1 AS a, 2 AS b, 3 AS c FROM dual)
Run it
Open the declaration and find something like this:

CREATE VIEW v#my_test
AS
    (SELECT 1     AS a
           ,2     AS b
           ,3     AS c
       FROM DUAL);

Would this be possible? We have schema triggers that alter packages and views, so that part is covered. But is there a way to get arbori into Oracle?
Thanks in advance - I will gladly accept a no, but please don't just say what a stupid idea
Cheers
André

This post has been answered by Philipp Salvisberg on Nov 23 2021
Jump to Answer

Comments

I dont see a msi version in the link. whats the process to get the msi file.

PhHein

Have a look here:

https://www.oracle.com/technetwork/java/javase/documentation/msiinstallerfaq-2967694.html

It is available to Java SE Subscription, and Java SE Desktop Subscription subscribers, and is a commercial feature entitlement for  legacy Java SE Advanced and Java SE Advanced Desktop customers.

1 - 3

Post Details

Added on Nov 4 2021
8 comments
1,026 views