Micha de Vries
5bfe598a96
Process scripting functions before "type::*" functions ( #2681 )
...
Co-authored-by: Mees Delzenne <mees.delzenne@gmail.com>
2023-09-12 11:14:09 +01:00
Mees Delzenne
b02567d233
Improved error messages ( #2566 )
2023-09-08 11:28:36 +00:00
Finn Bear
e9821ee09e
Experimental Bugfix - consolidate execution depth limit. ( #2616 )
2023-09-04 23:51:33 +01:00
Micha de Vries
22c36b80c8
move is::*
-> string::is::*
, add new type::is::*
fncs ( #2603 )
2023-09-04 16:10:18 +00:00
Tobie Morgan Hitchcock
e9ee5245c2
Code cleanup ( #2569 )
2023-09-01 15:36:54 +01:00
Tobie Morgan Hitchcock
3c40af0165
Add PERMISSIONS
to DEFINE PARAM
and DEFINE FUNCTION
clauses ( #2564 )
2023-09-01 11:07:04 +01:00
Tobie Morgan Hitchcock
fc7f5cb0b0
Support variable field projection with type::field()
and type::fields()
( #2552 )
2023-08-31 13:06:10 +01:00
Mees Delzenne
daf6743c4e
Miscellaneous parser improvements ( #2515 )
2023-08-29 11:50:00 +01:00
Salvador Girones Gil
b5b6f6f1d4
[security] Introduce the Datastore capabilities ( #2489 )
2023-08-23 20:26:31 +01:00
Tobie Morgan Hitchcock
c2e695b897
Support whitespace in JavaScript function definition ( #2473 )
2023-08-20 14:14:53 +01:00
Tobie Morgan Hitchcock
b2b51b54b1
Add versioned data storage serialisation ( #2433 )
2023-08-17 19:03:46 +01:00
Mees Delzenne
278e27db87
Implement support for running queries in script functions. ( #2331 )
2023-07-26 07:54:07 +00:00
hchockarprasad
432a6cc5b8
Add time::min & time::max function ( #2320 )
2023-07-23 08:19:28 +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
Emmanuel Keller
e9eeb9aca7
QueryPlanner / indexing / Context / Cursor doc ( #2229 )
2023-07-06 14:57:42 +00:00
Tobie Morgan Hitchcock
4b690c763b
Improve datastore configuration options ( #2227 )
2023-07-05 21:26:13 +00:00
Emmanuel Keller
6d5dcfadd9
Feature - Full-text search scoring function ( #2158 )
2023-06-23 21:26:19 +01:00
Emmanuel Keller
8e64750a60
Feature - Search highlighting ( #2132 )
2023-06-21 19:31:15 +01:00
Emmanuel Keller
668d3fd8fb
Introduce query planner and indexing ( #1899 )
2023-06-19 19:41:13 +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
01b280623c
Feature #1973 - Add time::ceil function. ( #1975 )
2023-05-11 14:46:36 -04:00
Emmanuel Keller
848be4dafb
Implements analyzer definition ( #1705 )
2023-05-09 22:08:09 -04:00
Tobie Morgan Hitchcock
19b0920e15
Ensure Idiom
paths result in writeable transactions where necessary ( #1957 )
2023-05-09 18:17:29 -04:00
Finn Bear
ccc16fa9a7
Feature - Expand support for Bytes
( #1898 )
2023-05-09 16:43:16 -04:00
Finn Bear
d0e76e64a9
Testing & Bugfix - Ensure consistency of functions. ( #1919 )
2023-05-05 00:05:51 +01: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
Rushmore Mushambi
1e8903b699
Derive Serialize
implementations for enums ( #1887 )
2023-04-29 21:50:25 +01:00
Finn Bear
3f3b2248b3
Bugfix - Allow {time, duration}::from::* to be parsed ( #1886 )
2023-04-29 20:57:10 +01:00
Rushmore Mushambi
91e949248d
Unify serialisation ( #1881 )
2023-04-29 16:58:22 +01:00
Finn Bear
38016a0ee6
Add SQL array::slice
function. ( #1855 )
2023-04-25 22:48:09 +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
8bf5585080
Simplify parser and improve performance
2023-04-17 13:09:56 +01:00
Tobie Morgan Hitchcock
7448cd1305
Ensure custom functions can write data
...
Closes #1808
2023-04-14 16:51:15 +01:00
Tobie Morgan Hitchcock
8083eaf751
Allow ::
module separators in custom function names
...
Closes #1775
2023-04-06 09:35:01 +01:00
Tobie Morgan Hitchcock
2e0093c41d
Improve SQL Idiom
path parsing
...
Closes #1653
2023-03-31 20:00:21 +01:00
Tobie Morgan Hitchcock
a1d8494de1
Only parse JavaScript functions beginning with function()
2023-03-30 15:19:18 +01:00
Rushmore Mushambi
3e80aa9914
Implement to_value
for sql::Value
( #1659 )
...
`sql::Value` is an integral part of `surrealdb`. It's the internal type used by our storage layer. Because of this, we do a lot of converting between this type and native Rust types. Currently this conversion is done through `JSON` using the `serde_json` crate because we do not have our own custom data format implementation. This works because `SQL` is a superset of `JSON`. This, however, means that this conversion is lossy and can cause surprises in some cases. For example expecting record IDs to be deserialized into a `String` instead of its corresponding Rust native type.
This change implements a custom data format around `sql::Value` and introduces a `to_value` function that facilitates that conversion.
2023-03-30 11:41:44 +01:00
Tobie Morgan Hitchcock
fb2356b17a
Add SQL array::add()
function for adding unique items
...
Related to #1690
2023-03-26 08:53:37 +01:00
Tobie Morgan Hitchcock
b49d58a362
Add additional SQL array functions
...
Closes #1725
Related to #1690
Add `array::append()`, `array::pop()`, `array::prepend()`, `array::push()`, `array::remove()`, and `array::reverse()` SQL functions
2023-03-25 22:37:47 +00:00
Tobie Morgan Hitchcock
cdac4f84cd
Add support for custom SQL functions
...
Closes #247
2023-03-25 19:44:03 +00:00
Tobie Morgan Hitchcock
9afb3499ae
Sort casting functions by name
2023-03-20 15:22:19 +00:00
Emmanuel Keller
f3e605afde
Implements transaction isolation testing ( #1674 )
2023-03-10 15:24:27 +00:00
Tobie Morgan Hitchcock
5e2157a0a2
Rename SQL string::length()
function to string::len()
2023-02-18 21:07:37 +00:00