News for hackers. Stuff that matters.
Re:Select * from cloud by jolux on Friday September 30, 2022 @11:09PM (#33043462)
Yes, I've been a professional C#/.NET developer before and understand LINQ and Entity Framework. The difference is that CTEs allow you to reference multiple tables at once and do inserts and updates on the intermediate result set. You can also use recursive CTEs to do hierarchical and graph-style queries, which you can't do with LINQ as far as I know.

LINQ also can't do window functions. Like I said, it covers the basics of SQL that most applications need. But as soon as you need to go beyond that you'll be writing custom SQL.

Re:Select * from cloud by dropofwill on Saturday October 01, 2022 @01:32AM (#33044164)
Never used C#, but in Java land we have a similar dsl jooq, which supports everything i’ve ever needed, including window functions https://www.jooq.org/doc/latest/manual/sql-building/column-e...
Re:Select * from cloud by jolux on Saturday October 01, 2022 @03:01AM (#33044598)
Yeah, there's nothing else quite like jOOQ as far as I know. I think SQLAlchemy in Python is the only other library that even comes close.
Re:Select * from cloud by matwood on Saturday October 01, 2022 @08:24AM (#33046098)
jooq is amazing and one of the things I really miss any time I leave Java land.
Re:Select * from cloud by lukaseder on Monday October 03, 2022 @04:00AM (#33064710)
Then don't leave