Syntax highlighting for SQL tagged template literals in JavaScript and TypeScript.
Pairs nicely with the following packages:
SQL syntax highlighting is triggered in a couple of ways:
- tagged template literals via a
sql*
ordb*
identifier - a
.sql
or.db
method invoked as a template tag - template literal strings with a
/* sql */
or/* db */
comment prefix
- .js
- .jsx
- .ts
- .tsx
- .vue
None. This extension only offers syntax highlighting.
Be sure to follow best practices documented in your database driver package of choice to mitigate sql injection vulnerabilities!