Blackdread/sql-to-jdl

Add support for Oracle

octgsoftware opened this issue · 1 comments

This should only require writing proper native SQL files for 3 queries and a SqlJdlTypeService.

Re-opening this ticket, I think there is still work to be done.
See comment of first PR #177 (comment)

I think, some steps needed:

  • remove logic if (value.equals("NUMBER(38)") || value.equals("NUMBER(19,5)")) from public static String parseSqlType(String value) of SqlUtils -> Define overridden method in OracleJdlTypeService for default JdlFieldEnum sqlTypeToJdlType(final String sqlType) -> so we can handle oracle specific types and parsing differentely
  • handle more types
  • allow definition of short, int, long
  • better handling of decimal(p, s) -> NUMBER [ (p [, s]) ]

Docs: