104 Commits

Author SHA1 Message Date
Asdine El Hrychy
a60e2f33e1 use single quotes for text 2025-09-21 11:28:55 +05:30
Asdine El Hrychy
08bd0e768f rename double to double precision 2025-09-20 21:03:29 +05:30
Asdine El Hrychy
613ca304f4 remove rowid 2025-09-07 23:29:43 +08:00
Asdine El Hrychy
40c1fcbbe1 add nextval 2025-08-31 13:57:04 +08:00
Asdine El Hrychy
083e83de9c add support for pg style bind parameters 2025-08-27 20:00:48 +08:00
Asdine El Hrychy
5f814d2326 add CREATE SEQUENCE tests 2025-08-27 20:10:19 +08:00
Asdine El Hrychy
fa99741a5d fix insert deadlock 2025-08-27 11:16:18 +08:00
Asdine El Hrychy
e363bcd690 use sql driver everywhere 2025-08-25 18:15:15 +08:00
Asdine El Hrychy
6f8c2d2b47 stream: add Columns method 2024-02-20 09:39:14 +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
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
c5d6f3b946 fix: deep copy strings during scan (#499)
When decoding a document from the disk, fields of type TEXT are not copied on purpose to avoid doing unnecessary copies.
However, when the data reaches the upper layers, usually when it's about to get scanned (i.e. document.Scan, document.StructScan), strings must always get deep cloned before being returned to the user.
2023-06-18 18:38:12 +08:00
Asdine El Hrychy
9c5ddbfe6f Add easy to use error functions 2022-07-14 15:17:08 +08:00
Asdine El Hrychy
35ac656a0a Fix driver test 2022-06-27 17:29:05 +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
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
575498d67e Remove Wasm related code 2022-01-15 23:29:21 +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
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
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
Asdine El Hrychy
7503df26de Add benchmark 2021-03-07 17:36:18 +04:00
Asdine El Hrychy
7d2eb778ff Use new stream API 2021-02-02 00:01:30 +04:00
Asdine El Hrychy
368b8c189b Replace stack by environment 2020-12-22 14:10:41 +04:00
Ivan Trubach
46d8eced1e Add support for context.Context 2020-10-27 17:04:08 +04:00
Asdine El Hrychy
7320a893c9 Pass context to high level APIs 2020-10-04 16:45:47 +04:00
Asdine El Hrychy
dc773d2bc8 Remove transaction promotion 2020-08-19 19:03:43 +02:00
Asdine El Hrychy
fbab70b6b1 Replace references to asdine/genji by genjidb/genji 2020-05-28 16:00:29 +04:00
Asdine El Hrychy
b8492c9ef7 Use new memory engine everywhere 2020-02-16 19:04:39 +01:00
Asdine El Hrychy
6893c7c98e Move stream examples to document package 2019-12-31 13:42:12 +01:00
Asdine El Hrychy
e61d476570 Add nested structs to examples 2019-12-31 13:30:40 +01:00
Asdine El Hrychy
43ce0a1b49 Replace mentions of record by document 2019-12-19 23:06:58 +01:00
Asdine El Hrychy
e8179aa9e6 Move driver to sql/driver package 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
845c986b35 Override slice during scan 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
c6915c20bb Use encoding package everywhere 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
9ec4900ed4 Fix tests 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
5b51b1ac0c Move tests to query package 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
ce74ae6359 Rename RECORDS clause to DOCUMENTS 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
1c685a8123 Use new document api 2019-12-15 14:31:04 +01:00
Asdine El Hrychy
c7fe43ba21 Rename Record type to Document 2019-12-15 14:31:04 +01:00