<commit_before># mustache-sql [![Build Status](https://travis-ci.org/hden/socketio-wildcard.svg?branch=master)](https://travis-ci.org/hden/socketio-wildcard)
hipster-style SQL template

## install

    npm install --save mustache-sql

## example

```js
let render = require('mustache-sql')
let template = 'UPDATE foobar SET {{property}} WHERE id = {{id}}'
let parameter = { id: 1, property: { foo: 'bar', num: 3.14 } }
render(template, parameter)
// UPDATE foobar SET `foo` = 'bar', `num` = 3.14 WHERE id = 1
```

## features

* `{{valu}}` and `{{{key}}}` are escaped by [node-mysql](https://github.com/felixge/node-mysql)
* partials<commit_msg>fix typo in the README<commit_after># mustache-sql [![Build Status](https://travis-ci.org/hden/socketio-wildcard.svg?branch=master)](https://travis-ci.org/hden/socketio-wildcard)
hipster-style SQL template

## install

    npm install --save mustache-sql

## example

```js
let render = require('mustache-sql')
let template = 'UPDATE foobar SET {{property}} WHERE id = {{id}}'
let parameter = { id: 1, property: { foo: 'bar', num: 3.14 } }
render(template, parameter)
// UPDATE foobar SET `foo` = 'bar', `num` = 3.14 WHERE id = 1
```

## features

* `{{value}}` and `{{{key}}}` are escaped by [node-mysql](https://github.com/felixge/node-mysql)
* partials
{'fraction_non_alphanumeric': 0.19230769230769232, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 4.536170212765957, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5023276', 'n_tokens_mistral': 484, 'n_tokens_neox': 451, 'n_words': 115}