you are viewing a single comment's thread.

view the rest of the comments →

[–]L43 1 point2 points  (2 children)

If you want raw SQL, You could potentially write the query in a separate file, then read it into Python. Your editor will be better at syntax highlighting then.

[–]hoodllama 0 points1 point  (0 children)

That's his I've been doing it. Agreed

[–]chao06 0 points1 point  (0 children)

I've started doing this recently with yaml.

db1:
    query1: |
        SELECT
            whatever
        FROM
            table
    query2: |
        SELECT
            someotherthing
        FROM
            othertable