Commit Graph

32 Commits

Author SHA1 Message Date
Asdine El Hrychy
613ca304f4 remove rowid 2025-09-07 23:29:43 +08:00
Asdine El Hrychy
3541f49ad0 remove stream.Clone 2025-08-31 18:46:39 +08:00
Asdine El Hrychy
7f32a3b9c6 fix prepared statements 2025-08-31 17:45:17 +08:00
Asdine El Hrychy
23e406360f expr: Bind Columns to tables 2024-02-18 14:38:34 +04:00
Asdine El Hrychy
fc051f7cf9 db: only strict schemas 2024-02-17 14:27:02 +04:00
Asdine El Hrychy
eb514dea35 cli: improve csv import speed 2023-12-03 23:45:09 +04:00
Asdine El Hrychy
edcb91d4c5 chore: rename genji to chai 2023-12-02 11:25:56 +04:00
Asdine El Hrychy
d981a577c0 db: introduce row type 2023-12-01 20:39:23 +04:00
Asdine El Hrychy
f94c703453 planner: add support for primary key and index ordering. fixes #469 #470 2023-11-15 20:15:09 +04:00
Asdine El Hrychy
aa468f2999 sql: improve and fix ALTER TABLE ADD FIELD logic 2023-11-06 21:56:55 +04:00
Asdine El Hrychy
ce7c2a3c60 tx: lock-free catalog updates 2023-11-04 10:26:04 +04:00
Asdine El Hrychy
9c5ddbfe6f Add easy to use error functions 2022-07-14 15:17:08 +08:00
Asdine El Hrychy
e9439c2895 Add stream.Discard operator 2022-06-27 16:15:18 +08:00
Asdine El Hrychy
9617d1c29b Split stream operators in multiple files 2022-06-19 22:18:01 +04:00
Asdine El Hrychy
67fdb9ca6b Add custom encoding for documents 2022-05-15 21:53:41 +04:00
Asdine El Hrychy
dc83d082db Renamed SeqScan and PkScan to table.Scan 2021-12-10 11:55:46 +05:30
Asdine El Hrychy
8983d68daf Support composite primary keys 2021-12-04 23:42:43 +05:30
Asdine El Hrychy
a7309a70c5 Add tree package 2021-12-04 10:51:07 +04:00
Asdine El Hrychy
321c8e9b97 Add IndexInsert operator 2021-11-10 19:17:15 +04:00
Asdine El Hrychy
a4958fee6a Add support for CHECK (#436) 2021-11-09 21:14:10 +04:00
Jean Hadrien Chabran
4a6e68439a Refactor to handle errors with internal/errors (#432)
All new error handling code now rely on internal/errors package
which provides a compilation time toggle that enables to capture
stacktraces for easier debugging while developing.

It also comes with a new testutil/assert package which replaces the require
package when it comes to checking or comparing errors and printing the
stack traces if needed.

Finally, the test target of the Makefile uses the debug build tag by default. 
A testnodebug target is also provided for convenience and to make sure no
tests are broken due to not having used the internal/errors or testutil/assert package.

See #431 for more details
2021-08-22 11:47:54 +03:00
Asdine El Hrychy
f966172cee Introduce Value interface (#422)
This replaces the Value struct by an interface to allow us to override some
values behavior in the future.
It also introduces a new package types, which contains type definitions, comparison,
and arithmetics.
Concerning encoding, Genji now only uses on type of encoding for values. This simplifies
indexing logic as well as table access in general.
2021-07-21 22:05:44 +04:00
Asdine El Hrychy
d5401cfe5d Decouple transaction from catalog
To avoid cyclic dependencies, we removed the Catalog from the
Transaction type and pass it around everywhere.
2021-07-02 15:55:58 +04:00
Asdine El Hrychy
22e9b5f258 Replace constraint_path by owner 2021-06-29 00:49:55 +04:00
Asdine El Hrychy
da72d3eb39 Drop docid sequence upon table deletion 2021-06-29 00:33:06 +04:00
Asdine El Hrychy
8faceadd56 Release unused sequences when database closes 2021-06-28 23:48:11 +04:00
Asdine El Hrychy
9009753d63 Create sequence for docids (#417)
Each table with no primary key now creates a sequence to manage docids
2021-06-28 22:45:50 +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
35b74ab2ad Merge __genji_tables and __genji_indexes into __genji_schema
Table and index information is now stored in a single public table
2021-06-20 17:22:26 +04:00
Asdine El Hrychy
6b6bc6b155 Normalize table and index storage (#410)
Table and index information is now stored the same way, with minimal data:

sql: query used to create the table / index
table_name / index_name
store_name
2021-06-06 20:02:40 +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