Comments (4)
Hi Jacek,
as you mentioned before - with good default values for new parameters I see no reason to not to have this parameterized. could be the same like with our p_sequence_name
parameter, which also do a replacement for the given string:
Suggested parameter name: p_api_name varchar2 default null
Best regards
Ottmar
from table-api-generator.
Hi Jacek,
Additional idea: the current string replacements are driven by our existing internal table and column name short names. I could think of to grab the number inside with an regex and you as a user are free to set any number you like as long as you use #TABLE_NAME_XX#
or #PK_COLUMN_XX#
.
As an example: you could use then #TABLE_NAME_17#
.
The #COLUMN_PREFIX#
is derived automatically - in the example below the it would be EMP
. If not all columns have the same prefix then it would be null.
CREATE TABLE "HR"."EMPLOYEES" (
"EMP_ID" NUMBER(6,0),
"EMP_FIRST_NAME" VARCHAR2(20 BYTE),
"EMP_LAST_NAME" VARCHAR2(25 BYTE),
"EMP_EMAIL" VARCHAR2(25 BYTE),
"EMP_PHONE_NUMBER" VARCHAR2(20 BYTE),
"EMP_HIRE_DATE" DATE,
"EMP_JOB_ID" VARCHAR2(10 BYTE),
"EMP_SALARY" NUMBER(8,2),
"EMP_COMMISSION_PCT" NUMBER(2,2),
"EMP_MANAGER_ID" NUMBER(6,0),
"EMP_DEPARTMENT_ID" NUMBER(4,0)
);
Best regards
Ottmar
from table-api-generator.
I forgot to tell you why we do this at all:
We need this for the SQL Developer integration - there you can select multiple tables and generate all API code at ones - so we need a way to define a variable sequence name for each selected table.
Regards
Ottmar
from table-api-generator.
Hi Jacek,
the new version 0.5.0 is out (it took a long time). You can define in this version a custom API name - therefore I close now this issue.
Best regards
Ottmar
from table-api-generator.
Related Issues (20)
- Add returning into all non-blob-columns HOT 2
- Toggle not to use NotNull-Constraints HOT 4
- new Parameters p_enable_col_camel and p_enable_prefic_fnc_prc HOT 1
- Use SYS_GUID instead of sequence HOT 2
- Primary key not returned on create_row when XMLTYPE column is present HOT 4
- Primary key missing from create_row when identity column is used as PK HOT 4
- Add support for multitenant applications HOT 12
- Generate a function named get_default_row when parameter p_enable_column_defaults is set to true HOT 1
- Development branch: When parameter p_enable_column_defaults is set to true the compiled TAPI is sometimes invalid HOT 1
- compile error HOT 6
- Exception Handling HOT 2
- Oracle 23c Free - Install-Script returns ORA-01422 HOT 3
- Tenant column filter is missing from generated views HOT 1
- Specifying shorter table name substitution variables in p_one_to_one_view_name generates corrupted view name HOT 1
- P%COLUMN_MAPPING parameters are case sensitive HOT 1
- Error installing on oracle 23c free HOT 2
- Generating default values for virtual columns HOT 1
- Enhancement: QuickSQL-like validation and/or transformation
- Read row by unique keys lists tenant column as a parameter
- Boolean support Oracle 23c HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table-api-generator.