3 ms·
How do you suggest to improve it?
by probablyrobert 5y ago
How do you suggest to improve it?
- inshadows 5y agoWrite SQL.
- jjice 5y agoI think the parent is saying that the SQL example is simpler and easier to read.
- vonseel 5y agoYeah, but he’s completely skipping over the fact that you’re going to lose some of the readability of short SQL statements switching to an ORM with methods, types/classes, functions, etc., but you can gain in maintainability of code.
- IanCal 5y agoNot the original author, but "or" at the start then a list may be better called "any". That (to me) would read more clearly. Particularly if you were passing in the contents, '"or": var' would make me think "var or what?" But '"any": var' seems more obvious. Has a clear link to the python "any" as well
- probablyrobert 5y agoThanks for the suggestion, I've created an issue to track this as I do agree that `ANY` conveys the operation more clearly. https://github.com/RobertCraigie/prisma-client-py/issues/293 https://github.com/RobertCraigie/prisma-client-py/issues/293