Commit Graph

12 Commits

Author SHA1 Message Date
Asdine El Hrychy
d981a577c0 db: introduce row type 2023-12-01 20:39:23 +04:00
Asdine El Hrychy
3f32bcbf19 Prevent index creation on undeclared path 2022-06-27 17:20:18 +08:00
Asdine El Hrychy
67fdb9ca6b Add custom encoding for documents 2022-05-15 21:53:41 +04:00
Asdine El Hrychy
6178d1acfb Support params in LIMIT and OFFSET 2022-04-09 14:08:35 +04:00
Asdine El Hrychy
8983d68daf Support composite primary keys 2021-12-04 23:42:43 +05:30
Asdine El Hrychy
0dab113fc7 Add test suites 2021-11-06 12:31:37 +04:00
Asdine El Hrychy
b9e73de3f4 Replace HashAggregator by GroupAggregator 2021-09-30 22:49:51 +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
daf4f79e9f Fix field name when using alias (#424)
This fixes a bug where using AS wouldn't rename the field
2021-07-24 18:31:53 +04: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
0d10465ba3 Make SELECT open a read-write tx when using NEXT VALUE FOR 2021-06-27 16:20:02 +04:00
Asdine El Hrychy
7a98a2025f Move statements into their own package 2021-05-30 12:47:17 +04:00