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
7f32a3b9c6 fix prepared statements 2025-08-31 17:45:17 +08:00
Asdine El Hrychy
40c1fcbbe1 add nextval 2025-08-31 13:57:04 +08:00
Asdine El Hrychy
9fa00433fe use stream iterators 2025-08-16 12:31:52 +08:00
Asdine El Hrychy
23e406360f expr: Bind Columns to tables 2024-02-18 14:38:34 +04:00
Asdine El Hrychy
6bc4992d70 db: add Connection 2024-02-20 09:38:56 +04:00
Asdine El Hrychy
5095097a0a cleanup: delete assert package 2024-02-18 11:31:26 +04:00
Asdine El Hrychy
fc051f7cf9 db: only strict schemas 2024-02-17 14:27:02 +04:00
Asdine El Hrychy
31dbf28801 expr: allow wildcard as an argument for all functions 2023-12-03 09:16:33 +04:00
Asdine El Hrychy
edcb91d4c5 chore: rename genji to chai 2023-12-02 11:25:56 +04:00
Asdine El Hrychy
3c9e4fca3f chore: move packages to internal 2023-12-01 20:56:24 +04:00
Asdine El Hrychy
d981a577c0 db: introduce row type 2023-12-01 20:39:23 +04:00
Asdine El Hrychy
9617d1c29b Split stream operators in multiple files 2022-06-19 22:18:01 +04:00
Asdine El Hrychy
6178d1acfb Support params in LIMIT and OFFSET 2022-04-09 14:08:35 +04:00
Asdine El Hrychy
f01e4aefdc Rework kv package interface 2022-04-07 15:49:18 +04:00
Asdine El Hrychy
1da209b2ac Normalize stream operators naming 2021-12-12 23:53:01 +05:30
Asdine El Hrychy
dc83d082db Renamed SeqScan and PkScan to table.Scan 2021-12-10 11:55:46 +05:30
Asdine El Hrychy
a7309a70c5 Add tree package 2021-12-04 10:51:07 +04:00
Asdine El Hrychy
0327fe9407 Normalize stream environment 2021-11-19 16:25:43 +01:00
Asdine El Hrychy
5c8b32c044 Allow duplicated fields 2021-11-07 15:30:18 +04:00
Asdine El Hrychy
6dd3de11f9 Add new sqltests package 2021-10-30 16:13:30 +04:00
Asdine El Hrychy
b9e73de3f4 Replace HashAggregator by GroupAggregator 2021-09-30 22:49:51 +04:00
Asdine El Hrychy
412d30030d Add support for UNION 2021-09-30 20:47:22 +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
Jean Hadrien Chabran
e556fc3048 Add functions packages support (#419)
* Add packaged functions support

* Add tests for math.floor func

* Export FunctionsTable

* Extract func stuff into its own package

* Rename stuff

* Fix tests

* Move doc package to cmd/genji

* Adjust naming, typos
2021-07-17 13:07:16 +02: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
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
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
1a3d4f57a9 Move stream building to query package 2021-05-23 23:50:18 +04:00
Asdine El Hrychy
f402374ca3 Move parser to internal package 2021-05-23 21:03:11 +04:00