Skip to content

Commit

Permalink
JavaScript: Minor adjustments to README and .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl authored and surister committed May 21, 2024
1 parent 824eac4 commit 609e7a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions cratedb_sqlparse_js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@ dist
.yarn/install-state.gz
.pnp.*


*SqlBaseLexer.js
*SqlBaseParser.js
18 changes: 9 additions & 9 deletions cratedb_sqlparse_js/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Cratedb sqlparse - javascript edition.
# CrateDB SQL Parser for JavaScript

![NPM License](https://img.shields.io/npm/l/cratedb-sqlparse?style=for-the-badge)
![NPM Version](https://img.shields.io/npm/v/cratedb-sqlparse?style=for-the-badge)
![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/cratedb-sqlparse?style=for-the-badge)
![NPM Type Definitions](https://img.shields.io/npm/types/cratedb-sqlparse?style=for-the-badge)
![NPM Version](https://img.shields.io/npm/v/cratedb-sqlparse)
![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/cratedb-sqlparse)
![NPM Type Definitions](https://img.shields.io/npm/types/cratedb-sqlparse)
![NPM License](https://img.shields.io/npm/l/cratedb-sqlparse)

CrateDB sqlparser for javascript, compiled from antlr4 Javascript compile target.
CrateDB SQL Parser for JavaScript, compiled from antlr4 JavaScript compile target.

### Simple usage
```javascript
import { sqlparse } from cratedb-sqlparse;
import { sqlparse } from "cratedb-sqlparse";

const query = `
SELECT * FROM SYS.SHARDS;
Expand Down Expand Up @@ -41,6 +41,6 @@ Optional features:

### Errors
Errors are thrown as 'ParseError' e.g:
```javascript
```text
ParseError: line2:9 mismatched input 'ROM' expecting {<EOF>, ';'}
```
```

0 comments on commit 609e7a5

Please sign in to comment.