Oracle Table API Generator
Fixes #30: Primary key missing from create_row when identity column is used as PK - thanks to PaoloM (github.com/softinn72) to report this issue.
Fixes #29: Primary key not returned on create_row when XMLTYPE column is present - thanks to PaoloM (github.com/softinn72) to report this issue.
Special thanks to Jacek Gębal (github.com/jgebal), Peter Ettinger (github.com/pettinger) and PaoloM (github.com/softinn72) for the valuable feedback in several issues.
ATTENTION: When installed in a central tools schema you need from version 0.5 onwards a synonym om_tapigen
(private in the target schema or public) to run the package because of SQL functions inside the package.
New support for multi column primary keys:
New parameters:
p_owner ALL_USERS.USERNAME%TYPE DEFAULT USER
: docs
p_enable_column_defaults BOOLEAN DEFAULT FALSE
: docs
p_enable_parameter_prefixes BOOLEAN DEFAULT TRUE
: docs
p_enable_proc_with_out_params BOOLEAN DEFAULT TRUE
: docs
p_enable_getter_and_setter BOOLEAN DEFAULT TRUE
: docs
p_return_row_instead_of_pk BOOLEAN DEFAULT FALSE
: docs
p_api_name VARCHAR2 DEFAULT NULL
: docs
p_exclude_column_list VARCHAR2 DEFAULT NULL
: docs
p_enable_custom_defaults BOOLEAN DEFAULT FALSE
: docs
p_custom_default_values XMLTYPE DEFAULT NULL
: docs
Other things, mostly internals, the visible one is better formatted API code:
view_existing_apis
to be able to find also APIs with names other then <TABLE_NAME>_API
since the API name is now changeable with the parameter p_api_name
create_change_log_entry
with column type parameters to support also varchar2 pk_id values (needed for natural pk's like an ISO currency code)#EXAMPLE_STATIC#
to {{ EXAMPLE_STATIC }}
and {% EXAMPLE_DYNAMIC %}
, because #
is a valid character in a column name