oracle / quicksql

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

"Prefix primary keys with table name", table api error #57

Closed simonhunt8475 closed 7 months ago

simonhunt8475 commented 8 months ago

The generated table API is not respecting the prefixPKwithTname:true setting.

For example:

# settings = {prefixPKwithTname:true, "api":"Y"}
person
  first_name 
  last_name
  first_date
addreess
  address1
  address2
  person_id

the resulting table api includes:

    begin 
        insert into addreess ( 
            id,
            person_id,
            address1,
            address2
        ) values ( 
            p_id,
            p_person_id,
            p_address1,
            p_address2
        );

the ID column should be ADDRESS_ID and I'd like to see p_id become p_address_id.

Thank you.