Skip to content

Commit

Permalink
Add mssql recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jan 31, 2022
1 parent c39b553 commit 36c9db4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Build status][build-image]][build-url]
[![Build coverage][coverage-image]][coverage-url]

> ES2015 tagged template string for preparing SQL statements, works with [`pg`](https://www.npmjs.com/package/pg) and [`mysql`](https://www.npmjs.com/package/mysql).
> ES2015 tagged template string for preparing SQL statements.
## Installation

Expand Down Expand Up @@ -60,6 +60,16 @@ raw("SELECT"); // == sql`SELECT`

Simple placeholder value for an empty SQL string. Equivalent to `raw("")`.

## Recipes

This package "just works" with [`pg`](https://www.npmjs.com/package/pg) and [`mysql`](https://www.npmjs.com/package/mysql).

### [MSSQL](https://www.npmjs.com/package/mssql)

```js
mssql.query(query.strings, ...query.values);
```

## Related

Some other modules exist that do something similar:
Expand Down

0 comments on commit 36c9db4

Please sign in to comment.