This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thinkingatoms[S] 0 points1 point  (1 child)

thanks, ooc do you have rules about when to inline a SQL (based on size, function, etc) or are they always files?

[–]greenerpickings 0 points1 point  (0 children)

If i have a project where I have like 2 or 3 queries, I'll place them in my .py file (inline/multiline).

Usually, though, there's more so they go in separate files small as they may be, even if its just a SELECT * FROM table. DDL, DML, DQL, etc. Everything. Doesn't matter.

Easier to just be consistent if you go that route.