Commit Graph

39 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 5f814d2326 add CREATE SEQUENCE tests 2025-08-27 20:10:19 +08:00
Asdine El Hrychy e363bcd690 use sql driver everywhere 2025-08-25 18:15:15 +08: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 737d38165c types: rename enum types 2024-01-14 16:13:36 +01:00
Asdine El Hrychy 08e2c447f6 cli: improve import speed of csv 2023-12-03 22:11:29 +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 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 3f32bcbf19 Prevent index creation on undeclared path 2022-06-27 17:20:18 +08:00
Asdine El Hrychy 36eb6ba47a add rollback segment 2022-06-19 17:02:51 +04:00
Asdine El Hrychy c0c9567029 encoding: use custom encoding 2022-06-17 18:40:42 +04:00
Asdine El Hrychy 67fdb9ca6b Add custom encoding for documents 2022-05-15 21:53:41 +04:00
Asdine El Hrychy bbe5d8fb1a Rework CREATE TABLE API 2022-05-12 22:54:11 +04:00
Asdine El Hrychy 32ba38135f Use locks in catalog 2022-04-23 11:42:41 +04:00
Asdine El Hrychy 2d67d57d1f Cleanup 2022-04-07 16:47:20 +04:00
Asdine El Hrychy f01e4aefdc Rework kv package interface 2022-04-07 15:49:18 +04:00
Asdine El Hrychy 9187269128 Use cockroachdb errors 2022-01-22 11:37:00 +04:00
Asdine El Hrychy da2be37a69 Replace msgpack with unique encoder for keys and values 2021-12-22 22:21:49 +04:00
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
Asdine El Hrychy 524e633049 Add Union operator 2021-10-03 12:42:08 +04:00
Asdine El Hrychy 30270339e5 Rename sequence owner when table is renamed 2021-09-02 15:45:34 +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 4f74b22c70 Move catalog to database package 2021-08-10 22:22:17 -04:00
Asdine El Hrychy a180746477 Add catalog package 2021-06-26 20:35:40 +04:00
Asdine El Hrychy 7b4a02a770 Rename __genji_schema to __genji_catalog 2021-06-26 18:46:57 +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 37ebf47ea8 Move packages under internal package
These packages are not part of the public API and can break at any time.
2021-05-23 11:05:41 +04:00