@brigand/n1ql

parse couchbase's n1ql syntax

Usage no npm install needed!

<script type="module">
  import brigandN1ql from 'https://cdn.skypack.dev/@brigand/n1ql';
</script>

README

This package allows parsing n1ql into an abstract syntax tree. It will throw an error if the input is invalid.

npm install @brigand/n1ql

# or

yarn add @brigand/n1ql

It simply exports a function that converts the provided query string to an AST.

const parseN1ql = require('@brigand/n1ql');

const ast = parseN1Ql('SELECT * FROM some-table');