タグ

ブックマーク / joaodlf.com (1)

  • Python: Just write SQL

    I have been writing a lot more Go this past year. For those not familiar, Go favours a non-ORM, non-query-builder approach to interacting with databases. This comes naturally due to the sql package: A common interface to be used alongside database drivers. It’s very common to see actual SQL in Go, even in large projects. On the other hand, Python does not have anything in the standard library that

    peketamin
    peketamin 2023/08/15
    このアプローチは見通しよくてよさそう。ただ行追加はnewよりaddの方が好みかなあ…/insertとupdateはORMべんりだなと思う。selectはどうせjoinとか要るしSQL書いてる。readとwriteのドメインクラス作る時もこういうの気したいなあ
  • 1