# sql.pegjs **Repository Path**: mirrors_alsotang/sql.pegjs ## Basic Information - **Project Name**: sql.pegjs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sql.pegjs ## THIS PROJECT IS DEPRECATED, PLEASE FORK YOUR OWN **[WARN]https://github.com/steveyen/sqld3 seems just a toy, so do not use both projects of us.** This project is a SQL parser based on PEG([parsing expression grammar](http://en.wikipedia.org/wiki/Parsing_expression_grammar)). And the `sql.pegjs` file is modified from [https://github.com/steveyen/sqld3](https://github.com/steveyen/sqld3). Thanks for the effort of @steveyen. ## Usage ```js var parser = require('sql.pegjs'); var sql = 'select * from users;'; parser.parse(sql) // => [{"stmt":"select","select_cores":[{"results":[{"column":"*"}],"from":[{"table":"users"}]}]}]); ``` ## How to contribute 1. modify `lib/sql.pegjs` and add tests. 1. run `make build` 1. then run `make test` ## License MIT