Skip to content

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

@starnowski

Description

@starnowski

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions