oracle / quicksql

A library for generating DDL SQL and entity-relationship-diagrams from Quick SQL code
Universal Permissive License v1.0
52 stars 11 forks source link

With schema option, it is prefixed to the constraint name, causing ORA-02253 #27

Closed vadim-tropashko closed 7 months ago

vadim-tropashko commented 10 months ago

https://jsfiddle.net/9e2gfw0c/

Input:

dept
    name

# settings = {prefix: "prefix", schema: "schema"}

Output:

create table schema.prefix_dept (
    id      number generated by default on null as identity
            constraint schema.prefix_dept_id_pk primary key,
    name    varchar2(255 char)
);
vadim-tropashko commented 7 months ago

in 1.2.1