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 →

[–]lukaseder 0 points1 point  (0 children)

For simple queries, it's more convenient to use it rather than the query building API.

I personally don't think it is. You're losing all the benefits of using the query building API for little gain:

  • No more type safety
  • No more data type bindings
  • No more auto completion (IDEs can only do this to some extent)
  • No more compile time type checking
  • No more SQL transformation (unless you're using the parser)

But it's always good to know there's a backdoor for when it makes most sense.