We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In our CAP project we use hana-cli mc to convert database schema to cds. Later we use this cds in service cds views.
However it's quite time consuming to export every time table by table if schema contains many tables.
To improve the experience we can just declare namespace and then use this namespace in using instruction.
using
As an example if mc generates this file as model.cds:
entity![com.company.package::Table_1]{ ... }; entity![com.company.package::Table_2]{ ... }; entity![com.company.package::Table_3]{ ... }; entity![com.company.package::Table_4]{ ... };
then it requires us to write manually in each cds:
using {![com.company.package::Table_1], ![com.company.package::Table_2], ![com.company.package::Table_3] ... } from './model';
What is the proposal:
use hana-cli mc --namespace schema. Then generated file will look like this:
hana-cli mc --namespace schema
namespace schema; entity1, entity2....
and we can reuse it already much easier
using schema from './model';
The text was updated successfully, but these errors were encountered:
will propose in MR
Sorry, something went wrong.
Merged into version 2.202105.5 - will release that version soon
ThePlenkov
No branches or pull requests
In our CAP project we use hana-cli mc to convert database schema to cds. Later we use this cds in service cds views.
However it's quite time consuming to export every time table by table if schema contains many tables.
To improve the experience we can just declare namespace and then use this namespace in
using
instruction.As an example if mc generates this file as model.cds:
then it requires us to write manually in each cds:
What is the proposal:
use
hana-cli mc --namespace schema
. Then generated file will look like this:and we can reuse it already much easier
The text was updated successfully, but these errors were encountered: