Commit Graph

14 Commits

Author SHA1 Message Date
Asdine El Hrychy
fc051f7cf9 db: only strict schemas 2024-02-17 14:27:02 +04:00
Asdine El Hrychy
08e2c447f6 cli: improve import speed of csv 2023-12-03 22:11:29 +04:00
Asdine El Hrychy
d981a577c0 db: introduce row type 2023-12-01 20:39:23 +04:00
Asdine El Hrychy
986a493fcf types: add timestamp type 2023-11-28 08:04:49 +04:00
Asdine El Hrychy
bbe5d8fb1a Rework CREATE TABLE API 2022-05-12 22:54:11 +04:00
__touk__
a5e6f6ca5e Fix scanString (#439) 2022-01-25 19:15:34 +04:00
Asdine El Hrychy
a4958fee6a Add support for CHECK (#436) 2021-11-09 21:14:10 +04:00
Asdine El Hrychy
d3b81ad6f1 Add support for scientific notation for doubles 2021-07-25 22:36:31 -04:00
Asdine El Hrychy
43a9b3e560 Parse blob literal (#423)
We now have a literal representation for BLOBs. Any string literal starting
with '\x' is parsed as an hex encoded blob. This mimics PostgreSQL's behavior.

```sql
SELECT '\xAAFF';
```
2021-07-23 21:15:29 +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
Jean Hadrien Chabran
c00e6b046f Add union all clause (#408)
* Lay out the base for UNION stmt

* Optimize sub streams when there is a concat op
2021-06-05 16:22:45 +02:00
Asdine El Hrychy
357adc9f31 Add ON CONFLICT DO REPLACE
It also adds support for SQLite notations:
- ON CONFLICT IGNORE
- ON CONFLICT REPLACE
2021-05-28 15:00:33 +04:00
Asdine El Hrychy
7757022ea6 Add support for ON CONFLICT clause
By default, if there is a conflict when inserting a document,
we abort the current statement. Are considered conflicts
any error returned by duplicate primary keys or unique
constraint violations. The ON CONFLICT clause only
supports the DO NOTHING action, which returns no error.
2021-05-28 13:22:28 +04:00
Asdine El Hrychy
f402374ca3 Move parser to internal package 2021-05-23 21:03:11 +04:00