You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a SQL Parser for C++. It parses the given SQL query into C++ objects.
8
-
It is developed for integration in hyrise (https://github.com/hyrise/hyrise), but can be used in other environments as well.
8
+
It has been developed for integration in [Hyrise](https://github.com/hyrise/hyrise), but can be used perfectly well in other environments as well.
9
9
10
10
In March 2015 we've also written a short paper outlining discussing some development details and the integration into our database Hyrise. You can find the paper [here](http://torpedro.com/paper/HyriseSQL-03-2015.pdf).
11
11
12
12
13
-
###Usage
13
+
## Usage
14
14
15
15
**Note:** You can also find a detailed usage description at this [blog post](http://torpedro.github.io/tech/c++/sql/parser/2016/02/27/c++-sql-parser.html).
16
16
@@ -21,52 +21,53 @@ To use the SQL parser in your own projects you simply have to follow these few s
21
21
22
22
1. Download the [latest release here](https://github.com/hyrise/sql-parser/releases)
23
23
2. Compile the library `make` to create `libsqlparser.so`
24
-
3.*(Optional)* Run `make install` to copy the library to `/usr/local/lib/`
25
-
3. Run the tests `make test` to make sure everything worked
26
-
4. Take a look at the [example project here](https://github.com/hyrise/sql-parser/tree/master/example)
27
-
5. Include the `SQLParser.h` from `src/` and link the library in your project
First step to extending this parser is cloning the repository `git clone [email protected]:hyrise/sql-parser.git` and making sure everything works by running the following steps:
38
-
39
-
```bash
40
-
make parser # builds the bison parser and flex lexer
41
-
make library # builds the libsqlparser.so
42
-
make test# runs the tests with the library
24
+
3.*(Optional, Recommended)* Run `make install` to copy the library to `/usr/local/lib/`
25
+
4. Run the tests `make test` to make sure everything worked
26
+
5. Include the `SQLParser.h` from `src/` (or from `/usr/local/lib/hsql/` if you installed it) and link the library in your project
27
+
6. Take a look at the [example project here](https://github.com/hyrise/sql-parser/tree/master/example)
Rerun these steps whenever you change part of the parse. To execute the entire pipeline automatically you can run:
52
+
Quick Links:
46
53
47
-
```bash
48
-
make cleanall # cleans the parser build and library build
49
-
make test# build parser, library and runs the tests
50
-
```
54
+
*[SQLParser.h](src/SQLParser.h)
55
+
*[SQLParserResult.h](src/SQLParserResult.h)
56
+
*[SelectStatement.h](src/sql/SelectStatement.h)
51
57
58
+
## How to Contribute
52
59
53
-
#### How to contribute
60
+
**[Developer Documentation](docs/)**
54
61
55
62
We strongly encourage you to contribute to this project! If you want to contribute to this project there are several options. If you've noticed a bug or would like an improvement let us know by creating a [new issue](https://github.com/hyrise/sql-parser/issues). If you want to develop a new feature yourself or just improve the quality of the system, feel free to fork the reposistory and implement your changes. Open a pull request as soon as your done and we will look over it. If we think it's good then your pull request will be merged into this repository.
56
63
57
64
58
-
### Resources
59
-
60
-
*[Working Syntax Examples](docs/syntax.md)
61
-
*[Developer Documentation](docs/dev-docs.md)
62
-
63
-
64
-
### License
65
+
## License
65
66
66
67
HYRISE sql-parser is licensed as open source after the OpenSource "Licence of the Hasso-Plattner Institute" declared in the LICENSE file of this project.
67
68
68
69
69
-
###Contributers
70
+
## Contributers
70
71
71
72
The following people contributed to HYRISE sql-parser in various forms.
First step to extending this parser is cloning the repository `git clone [email protected]:hyrise/sql-parser.git` and making sure everything works by running the following steps:
12
+
13
+
```bash
14
+
make parser # builds the bison parser and flex lexer
15
+
make library # builds the libsqlparser.so
16
+
make test# runs the tests with the library
17
+
```
18
+
19
+
Rerun these steps whenever you change part of the parse. To execute the entire pipeline automatically you can run:
20
+
21
+
```bash
22
+
make cleanall # cleans the parser build and library build
23
+
make test# build parser, library and runs the tests
24
+
```
25
+
26
+
4
27
## Developing New Functionality
5
28
6
29
This section contains information about how to extend this parser with new functionalities.
@@ -18,7 +41,7 @@ Finally you will need to include your new file in `src/sql/statements.h`.
0 commit comments