Commit Graph

5 Commits

Author SHA1 Message Date
Asdine El Hrychy
fa66f81fb6 Improve default value expressions 2021-07-02 18:41:33 +04:00
Asdine El Hrychy
661c0eacce Add support for sequences (#416)
This adds support for sequences to Genji. For now, only sequence creation and use is supported, dropping or modifying a sequence will be added later.

To create a sequence:

```sql
CREATE SEQUENCE seq INCREMENT BY 10 MINVALUE 100 NO MAXVALUE START 500 CACHE 32 CYCLE;
```
2021-06-26 17:53:52 +04:00
Asdine El Hrychy
9918cd6f55 Thread safe statements (#406)
Previously, expressions and params were evaluated
during the planning phase. This change builds the query
plan without evaluating params and expressions
which are then evaluated only during the execution phase.
2021-06-04 10:56:23 +04:00
Asdine El Hrychy
7a98a2025f Move statements into their own package 2021-05-30 12:47:17 +04:00
Asdine El Hrychy
f402374ca3 Move parser to internal package 2021-05-23 21:03:11 +04:00