<commit_before>sql-parser
=========

# WIP
<commit_msg>Add a simple example in the README<commit_after>sql-parser
=========

**WIP**



```js
require('sql-parser').parse('SELECT * FROM mytable');

{ 
  type: 'QueryStatement',
  start: 0,
  end: 20,
  body:[
    {
      type: 'Select',
      columns: [ { type: 'Column', name: '*' } ],
      from: 'mytable'
    }
  ],
  tokens:[
    { type: 'keyword', value: 'SELECT', start: 0, end: 5 },
    { type: 'whitespace', value: ' ', start: 6, end: 6 },
    { type: 'asterisk', value: '*', start: 7, end: 7 },
    { type: 'whitespace', value: ' ', start: 8, end: 8 },
    { type: 'keyword', value: 'FROM', start: 9, end: 12 },
    { type: 'whitespace', value: ' ', start: 13, end: 13 },
    { type: 'identifier', value: 'mytable', start: 14, end: 20 }
  ] 
}
```

{'fraction_non_alphanumeric': 0.23172242874845106, 'fraction_numerical': 0.027261462205700124, 'mean_word_length': 3.04, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6658327', 'n_tokens_mistral': 330, 'n_tokens_neox': 298, 'n_words': 82}