Update README.md

This commit is contained in:
Pedro Flemming 2014-11-29 13:29:24 +01:00
parent 2f76183586
commit ddda14d0be
1 changed files with 13 additions and 7 deletions

View File

@ -12,15 +12,21 @@ 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**
* Most of select statements
See [Wiki](https://github.com/hyrise/sql-parser/wiki#currently-supported-and-planned-sql-features) * Join expressions
* Create tables
* Insert statements
**Can't (yet)**
* Union clauses
* Update statements
* Create anything other than tables