Загрузка видео...
Не удалось загрузить видео
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,068 просмотров • 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
