Skip to content

SQL formatting in snippets #6686

@BenCradock

Description

@BenCradock

Description

Snippets of cells that use mo.sql display as Python in the snippet. When added, they become SQL cells.

Suggested solution

Cells that use only mo.sql should be formatted as SQL in the snippet in the side bar. This means users of the snippet aren't confused when the snippet is inserted and the cell becomes SQL formatted. It also makes the SQL query more clear within the snippet, rather than as a Python string.

Are you willing to submit a PR?

  • Yes

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions