Skip to content
Discussion options

You must be logged in to vote

This isn't possible without overriding the generator class. You could do this in your application and make the following override.

    def schema_columns_sql(self, expression: exp.Schema) -> str:
        if expression.expressions:
            expressions = self.expressions(
                expression,
                dynamic=True,
                new_line=True,
                skip_first=True,
                skip_last=True,
            )
            return f"({expressions})"
        return ""

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nathanchapman
Comment options

Answer selected by georgesittas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants