You are viewing a single thread.
View all comments View context
8 points
*

Please tell me what IDE you’re using that’s capable of highlighting SQL syntax that’s embedded inside another language source file

Also please fucking stop with the “it’s current year stop x.” The year is not an argument.

permalink
report
parent
reply
4 points

JetBrains IDEs - IntelliJ, WebStorm, PyCharm, GoLand, etc., all support highlighting SQL embedded in another source file or even inside markup files like YAML. Does your IDE not support this?

permalink
report
parent
reply
1 point

RustRover isn’t ready for actual usage, I’ve tried it

permalink
report
parent
reply
2 points
*

Sublime is actually great at that especially when I keep my SQL in heredocs.

permalink
report
parent
reply
2 points

As the other commenter said, the Jetbrains IDEs do this perfectly fine. Although I’d also argue that if you’re working with SQL from within another language already, a DSL wrapper is probably gonna be the better way to go about this.

permalink
report
parent
reply
2 points
*

Unfortunately RustRover is still garbage for actual usage. And I refuse to use an ORM when I can just write the SQL in a more common syntax that everyone understands across every language instead of whatever inefficient library-of-the-week there is. Raw SQL is fine and can be significantly more performant. Don’t be scared.

permalink
report
parent
reply
2 points

I’m not talking full blown ORM here, not a fan of those either. I’m talking about some light weight wrapper that basically just assembles SQL statements for you, while giving you just a little more type safety and automatic protection against SQL injection, and not sacrificing any performance. I’m coming from the JVM world, where Jooq and Exposed are examples of that kind of thing.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 4.3K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments