Skip to content

thebearingedge/vscode-sql-lit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-sql-lit

Syntax highlighting for SQL tagged template literals in JavaScript and TypeScript.

Pairs nicely with the following packages:

Main Features

SQL syntax highlighting is triggered in a couple of ways:

  • tagged template literals via a sql* or db* identifier
  • a .sql or .db method invoked as a template tag
  • template literal strings with a /* sql */ or /* db */ comment prefix

Samples

Basic Tag

Basic Tag

Tag Method

Tag Method

Interpolated Values

Interpolated Values

TypeScript

Type Argument

PL/PgSQL

PL/PgSQL

Slonik

Slonik Methods

Slonik Typegen

Slonik Typegen

Slonik Validation

Slonik Validation

Template Comment Prefix

Template Comment Prefix

File Types

  • .js
  • .jsx
  • .ts
  • .tsx
  • .vue

Advanced Language Support

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!

About

🎨 Syntax highlighting for SQL template literals.

Resources

License

Stars

Watchers

Forks

Contributors 5