Skip to content
New issue

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

Add an option that generates DDL instruction in one single line instead of multiple lines #233

Open
starnowski opened this issue Feb 10, 2022 · 1 comment
Milestone

Comments

@starnowski
Copy link
Owner

Currently, DDL statements depending on their factory component can be generated in one line or multiple lines, for example:

CREATE OR REPLACE FUNCTION set_current_tenant_id(VARCHAR(255)) RETURNS VOID AS $$
BEGIN
PERFORM set_config('posmulten.tenant_id', $1, false);
END
$$ LANGUAGE plpgsql
VOLATILE;

after setting this option the DDL instruction should look like below example:

CREATE OR REPLACE FUNCTION set_current_tenant_id(VARCHAR(255)) RETURNS VOID AS $$ BEGIN PERFORM set_config('posmulten.tenant_id', $1, false); END $$ LANGUAGE plpgsql VOLATILE;
@starnowski starnowski added this to the r-0.6 milestone Feb 10, 2022
@starnowski starnowski modified the milestones: r-0.6, r-0.7 Dec 20, 2022
@starnowski
Copy link
Owner Author

Use decorator component added in #283

@starnowski starnowski modified the milestones: r-0.7, r-0.8 Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant