正在加载视频...
视频加载失败
SQL-in-JS formatting 😍 This is possible thanks to prettier-plugin-embed by Sec-ant (Ze-Zheng Wu), prettier-plugin-sql by JounQin, sql-formatter by Rene Saarsoo Setup Guide:
45,039 次观看 • 2 年前 •via X (Twitter)
6 条评论

Karl Horky 🦋 @karlhorky.com2 年前
Give these projects a star 🌟 prettier-plugin-embed by Sec-ant (Ze-Zheng Wu)

Karl Horky 🦋 @karlhorky.com2 年前
prettier-plugin-sql by @JounQin

Karl Horky 🦋 @karlhorky.com2 年前
sql-formatter by @renku

Karl Horky 🦋 @karlhorky.com2 年前
More great SQL tooling here:

Anton Revyako2 年前
@JounQin @renku Why are you storing sql in js? Put it in a separate file, it will bring many benefits

Karl Horky 🦋 @karlhorky.com2 年前
@JounQin @renku SQL-in-JS allows you to integrate with JavaScript and TypeScript: 1. Interpolation of runtime JavaScript values (eg. function parameters) 2. SQL closer to your logic (colocation) 3. Checking against TypeScript types Etc. Lots of benefits of having it in your JS/TS
相关视频
SQL Injection Hackers Grand Entrance To Your Database
The Tech Prophet (Amospikins)
67,132 次观看 • 6 个月前
