Commit graph

59 commits

Author SHA1 Message Date
David Bottiau
97ce910832
Add array::shuffle function (#3993) 2024-05-15 08:56:46 +00:00
Mees Delzenne
6375bd45a6
Feature: Add type::range function (#3748)
Co-authored-by: Rushmore Mushambi <rushmore@webenchanter.com>
2024-04-03 12:05:29 +00:00
Tobie Morgan Hitchcock
b03aeca08c
Cleanup a few things in the code (#3793)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-04-03 09:54:12 +00:00
Rushmore Mushambi
2fbb4f4617
Add #[non_exhaustive] to core structs and enums (#3781) 2024-04-02 20:12:08 +00:00
Rushmore Mushambi
f93f4999ed
Refactor Cargo features to use separate core library versions (#3688)
Co-authored-by: Mees Delzenne <mees.delzenne@gmail.com>
2024-03-15 11:21:32 +00:00
Dave MacLeod
b34cfc72fc
Fix string::is::longitude regex, more test coverage (#3684) 2024-03-14 14:51:03 +00:00
Mees Delzenne
9ff0fade50
Bugfix: Fix a panic when invalid builtin function names are passed to the executor (#3454) 2024-02-07 15:13:40 +00:00
Rushmore Mushambi
2ee33e7bdb
Revert breaking changes from sql1 (#3433) 2024-02-05 16:21:23 +00:00
Gerard Guillemas Martos
618a4d1b42
Fix: Panic invoking parameters and functions without a database (#3297) 2024-01-10 17:56:13 +00:00
Mees Delzenne
2755f572fc
Introduce new experimental parser (#2885)
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
2024-01-10 16:43:56 +00:00
Mees Delzenne
a7f186424e
Bugfix: Prevent overflow in math::power (#3162) 2023-12-15 21:50:34 +00:00
Micha de Vries
6e7c22e3b0
Optional function arguments should be optional (#3036) 2023-11-27 21:38:05 +00:00
Micha de Vries
81d82c6110
Basic object:: functions (#3033) 2023-11-27 19:14:41 +00:00
Micha de Vries
aa8591c7f4
Implement type::is::none() function (#3011) 2023-11-21 09:03:06 +00:00
Emmanuel Keller
6efd3e3d87
Feat: Analyzers to support functions (#2974)
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2023-11-20 18:36:21 +00:00
Micha de Vries
38e0aa4aa9
Ability to cast string to a Thing/Record ID (#2834) 2023-10-26 13:18:49 +00:00
Emin Fedar
e6a8f598fe
feat: improve time module (#2800) (#2801) 2023-10-08 00:46:40 +00:00
Mees Delzenne
d9fa31f745
Fix clippy warnings in tests and clippy check tests in CI (#2779) 2023-10-04 09:51:34 +00:00
Micha de Vries
a0072cf133
Improve type::is::record() method (#2736) 2023-09-22 19:44:28 +00:00
Micha de Vries
22c36b80c8
move is::* -> string::is::*, add new type::is::* fncs (#2603) 2023-09-04 16:10:18 +00:00
Mees Delzenne
48a2bb52ac
Provide existing context to functions called from scripting functions (#2605) 2023-09-04 12:12:24 +00:00
Salvador Girones Gil
bdac1fae72
[security] Introduce "allow-guests". Deny all caps by default (#2547) 2023-08-30 18:01:30 +00:00
Mees Delzenne
daf6743c4e
Miscellaneous parser improvements (#2515) 2023-08-29 11:50:00 +01:00
Tobie Morgan Hitchcock
a31d25d3c5
Support arbitrary number of arrays in array::concat() (#2526) 2023-08-27 11:40:49 +01:00
Salvador Girones Gil
998b263517
[iam] RBAC and multiple root users (#2176)
Co-authored-by: Przemyslaw Hugh Kaznowski <hughkaznowski@protonmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-07-29 18:47:25 +00:00
hchockarprasad
432a6cc5b8
Add time::min & time::max function (#2320) 2023-07-23 08:19:28 +00:00
Mees Delzenne
cacd9a1de9
Add tests for http functions (#2286) 2023-07-20 12:46:11 +00:00
hchockarprasad
88bcc87d39
Add array::at function (#2294) 2023-07-20 08:27:04 +00:00
hchockarprasad
eef9b755cb
Add first, last functions to array (#2285) 2023-07-19 14:23:07 +00:00
Emmanuel Keller
98a482e471
Implements additional function for vectors (#2266) 2023-07-16 13:04:22 +00:00
Eduardo Pereira de Sousa
b3a1b39236
Feature: Add additional functions for comparing strings for similarity. (#1904)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-07-14 20:37:52 +00:00
Tim
b83cd86f9d
Feature: 1903 Basic Vector Functions (#1907)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2023-07-14 18:00:07 +00:00
JustAnotherCodemonkey
a10b9cbb75
Feature for #2065: Add array functions to reduce JS slowdown. (#2156)
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2023-07-10 08:15:18 +00:00
Tobie Morgan Hitchcock
4b690c763b
Improve datastore configuration options (#2227) 2023-07-05 21:26:13 +00:00
Nrishinghananda Roy
5485883d3c
Fix multiple Clippy Lints (#2159) 2023-06-20 12:48:20 +01:00
Finn Bear
c45fd12509
Feature - Use rust_decimal (128b) instead of bigdecimal ("arbitrary" precision) (#1991) 2023-06-09 15:23:30 +00:00
Tobie Morgan Hitchcock
f5f10d508f
Improve type casting support (#2083)
Co-authored-by: Finn Bear <finnbearlabs@gmail.com>
2023-06-06 06:12:59 +00:00
Finn Bear
a81d427c02
Refactor - Use floats for math and cvt'ing from JS numbers, integer division truncates (#2032) 2023-05-23 07:10:09 +01:00
Finn Bear
db345a2ce7
Bugfix - time::ceil function edge case. (#1976) 2023-05-12 13:59:58 -04:00
Finn Bear
01b280623c
Feature #1973 - Add time::ceil function. (#1975) 2023-05-11 14:46:36 -04:00
Finn Bear
ccc16fa9a7
Feature - Expand support for Bytes (#1898) 2023-05-09 16:43:16 -04:00
Jan Tebernum
e9ebecfdd6
Feature: Implementation of array::join (#1920) 2023-05-04 21:38:02 +01:00
Jan Tebernum
1cd00cf3fc
Feature: Add function string::contains (#1906) 2023-05-03 11:40:17 +01:00
Tobie Morgan Hitchcock
453d368e69
Add integration tests for the built-in SQL functions (#1893) 2023-04-30 19:34:26 +01:00
Rushmore Mushambi
91e949248d
Unify serialisation (#1881) 2023-04-29 16:58:22 +01:00
Tobie Morgan Hitchcock
66b105dac0
Add support for stricter typings (#1861)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-04-25 11:13:04 +01:00
Tobie Morgan Hitchcock
ee24f8d6a0 Ensure array::remove() function works correctly
Closes #1831
2023-04-20 19:23:13 +01:00
Tobie Morgan Hitchcock
d2571a6b29 Ensure UUIDs convert to strings correctly
Closes #1650
2023-02-11 18:21:02 +00:00
Tobie Morgan Hitchcock
55dda013b6 Fix SQL function tests 2023-01-18 00:11:19 +00:00
Tobie Morgan Hitchcock
3a1294029e Add SQL array::all(), array::any(), array::min(), and array::max() functions
Closes #1588
2023-01-17 09:00:30 +00:00