Commit Graph

8 Commits

Author SHA1 Message Date
Asdine El Hrychy
d981a577c0 db: introduce row type 2023-12-01 20:39:23 +04:00
Asdine El Hrychy
99923393d6 fn: add now() function 2023-11-28 08:11:27 +04:00
Darkclainer
05dc6c9c16 Add LEN builtin function (#482)
Fixes #474
2022-10-14 15:56:44 +08:00
Asdine El Hrychy
bbe5d8fb1a Rework CREATE TABLE API 2022-05-12 22:54:11 +04:00
Asdine El Hrychy
bba4c0a630 Add typeof function 2021-07-25 22:35:18 -04:00
Jean Hadrien Chabran
01c87d1bf7 Handle integer conversion errors (#425)
When converting a double larger or equal to math.MaxInt64 to an integer, it previously overflowed silently. It now returns an explicit error.

This fixes along the way, the math.abs(-9223372036854775808) issue.
2021-07-25 18:25:02 +02:00
Jean Hadrien Chabran
1659ae24e5 Add more math functions (#421)
* Add math.acos and math.abs

* Add acosh, asin, asinh, atan and atan2

* Test for proper function documentation

* Cast to double on math functions

* Use the new types.Value interface
2021-07-22 15:47:56 +02: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