Commit Graph

21 Commits

Author SHA1 Message Date
Asdine El Hrychy
99923393d6 fn: add now() function 2023-11-28 08:11:27 +04:00
Yassine Ennebati
79af2d01b1 Add coalesce function (#513) 2023-11-23 11:07:00 +04:00
agonist
c0397abe12 Add UPPER function (#511) 2023-11-17 16:42:02 +08:00
agonist
b034800380 add LOWER function (#510) 2023-11-17 14:23:29 +08:00
Asdine El Hrychy
ce7c2a3c60 tx: lock-free catalog updates 2023-11-04 10:26:04 +04:00
Darkclainer
05dc6c9c16 Add LEN builtin function (#482)
Fixes #474
2022-10-14 15:56:44 +08:00
Alex Ostrikov
46b3af6a31 clean up some docs and code, including: (#479)
- typo fixes
- docstring format fixes
- unused variables fixes
- introducing first usages of testutil.ParseDocumentPaths function, which was previously unused
2022-08-06 17:43:06 +08:00
Asdine El Hrychy
c0c9567029 encoding: use custom encoding 2022-06-17 18:40:42 +04:00
Asdine El Hrychy
b00f075039 Add types.As and types.Is 2022-05-15 23:23:07 +04:00
Asdine El Hrychy
67fdb9ca6b Add custom encoding for documents 2022-05-15 21:53:41 +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
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
0327fe9407 Normalize stream environment 2021-11-19 16:25:43 +01: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
bba4c0a630 Add typeof function 2021-07-25 22:35:18 -04:00
Asdine El Hrychy
43a9b3e560 Parse blob literal (#423)
We now have a literal representation for BLOBs. Any string literal starting
with '\x' is parsed as an hex encoded blob. This mimics PostgreSQL's behavior.

```sql
SELECT '\xAAFF';
```
2021-07-23 21:15:29 +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
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