Merge branch 'master' of github.com:hyrise/sql-parser

This commit is contained in:
Pedro 2014-12-02 01:27:06 +01:00
commit 4d33ea21bf
1 changed files with 16 additions and 7 deletions

View File

@ -12,15 +12,24 @@ It is developed for integration in hyrise (https://github.com/hyrise/hyrise), bu
To create the full parser code run `make build`. The parser library code is created in `build/`. To create the full parser code run `make build`. The parser library code is created in `build/`.
To use the SQL Parser in your own code, you only need to include `SQLParser.h` and build+link all the source files from the parser with your project. To use the SQL Parser in your own code, you only need to include `SQLParser.h` and build+link all the source files from the parser with your project. See `hyrise/src/lib/access/sql/SQLQueryParser.cpp` for how it's used in Hyrise.
### Usage in Hyrise ### Update in Hyrise
To build a new version of the sql parser and include it in hyrise you have to run `make build` and copy all contents of `build/` to `hyrise/src/lib/access/sql/parser/` and run rebuild Hyrise with `make` within the hyrise directory. Run `./deploy_to_hyris.sh path/to/hyrise` to update the SQL parser within Hyrise.
If you have changed some API keywords than you might have to adjust the Hyrise source files accordingly. ### Capabilities (Can and Can't do)
### Language Progress Overview **Can**
* Single select statements
See [Wiki](https://github.com/hyrise/sql-parser/wiki#currently-supported-and-planned-sql-features) * Join expressions
* Create tables
* Insert statements
* Delete/Truncate statements
**Can't (yet)**
* Having clause
* Update statements
* Union clauses
* Create anything other than tables
* Alter/Rename statements