Skip to content

feat: add Oracle PL/SQL parser with broad Oracle object support#520

Open
jhovannyLinares wants to merge 1 commit into
tirth8205:mainfrom
jhovannyLinares:feature/plsql-oracle-parser
Open

feat: add Oracle PL/SQL parser with broad Oracle object support#520
jhovannyLinares wants to merge 1 commit into
tirth8205:mainfrom
jhovannyLinares:feature/plsql-oracle-parser

Conversation

@jhovannyLinares
Copy link
Copy Markdown

Adds a regex-based PL/SQL parser (_parse_plsql) that extracts Oracle database objects without requiring tree-sitter grammar support.

Supported constructs:

  • PACKAGE spec and PACKAGE BODY with member PROCEDURE/FUNCTION extraction
  • Standalone PROCEDURE and FUNCTION (with or without CREATE OR REPLACE)
  • TRIGGER with event and target table metadata
  • TYPE definitions (AS OBJECT, TABLE OF, UNDER, etc.)
  • IMPORTS_FROM edges for FROM/JOIN table references
  • CALLS edges for inter-package calls; Oracle system packages suppressed

New Oracle file extensions: .plsql, .pks, .pkb, .prc, .fnc, .trg, .pls Auto-detection: .sql files with Oracle headers routed to PL/SQL parser Wrapped (obfuscated) Oracle files are silently skipped

24 new tests; tests/fixtures/sample.plsql fixture covers all constructs. README: language list updated + Oracle PL/SQL usage collapsible section. CHANGELOG: entry added under [Unreleased].

Adds a regex-based PL/SQL parser (_parse_plsql) that extracts Oracle
database objects without requiring tree-sitter grammar support.

Supported constructs:
- PACKAGE spec and PACKAGE BODY with member PROCEDURE/FUNCTION extraction
- Standalone PROCEDURE and FUNCTION (with or without CREATE OR REPLACE)
- TRIGGER with event and target table metadata
- TYPE definitions (AS OBJECT, TABLE OF, UNDER, etc.)
- IMPORTS_FROM edges for FROM/JOIN table references
- CALLS edges for inter-package calls; Oracle system packages suppressed

New Oracle file extensions: .plsql, .pks, .pkb, .prc, .fnc, .trg, .pls
Auto-detection: .sql files with Oracle headers routed to PL/SQL parser
Wrapped (obfuscated) Oracle files are silently skipped

24 new tests; tests/fixtures/sample.plsql fixture covers all constructs.
README: language list updated + Oracle PL/SQL usage collapsible section.
CHANGELOG: entry added under [Unreleased].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant