Commit graph

324 commits

Author SHA1 Message Date
Emmanuel Keller
45c296a270
search::highlight option to highlight only the searched characters (edgengram, ngram) () 2024-03-19 17:47:50 +00:00
Raphael Darley
50125cb2b7
Add DEFINE TABLE ... RELATION ()
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-03-19 11:20:58 +00:00
Micha de Vries
7f6abc69bb
Overhaul force () 2024-03-18 20:59:39 +00:00
Przemyslaw Hugh Kaznowski
47a1589018
Refactor ds tasks to single part of codebase () 2024-03-18 12:30:31 +00:00
Rushmore Mushambi
f93f4999ed
Refactor Cargo features to use separate core library versions ()
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 () 2024-03-14 14:51:03 +00:00
Przemyslaw Hugh Kaznowski
4804426648
Remove race conditions in cf tests () 2024-03-13 12:12:35 +00:00
Mees Delzenne
3c92765fad
Fix export generating unparsable code with the new parser () 2024-03-12 15:43:56 +00:00
Emmanuel Keller
2fe4f352be
Feature: A query with aggregations should not store every records in memory ()
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-03-12 10:48:53 +00:00
Emmanuel Keller
0e3fb7b365
Bug fix: Implements the union strategy on unique indexes () 2024-03-12 08:58:22 +00:00
Mees Delzenne
87da9c0b01
Fix warnings () 2024-03-08 10:58:07 +00:00
Emmanuel Keller
1784a1202e
Check that objects properties are recognized by the query planner () 2024-03-07 16:45:05 +00:00
Emmanuel Keller
686a140d80
Support of IN operator in the planner () 2024-03-06 23:41:48 +00:00
Micha de Vries
e637a538d2
Implement IF NOT EXISTS-clause on DEFINE-statements () 2024-03-06 13:24:24 +00:00
Przemyslaw Hugh Kaznowski
7ae882921c
Unflake bootstrap test () 2024-03-06 12:42:28 +00:00
Emmanuel Keller
5534a70431
Bug fix: Restore cosine distance on MTree indexes () 2024-03-06 09:29:19 +00:00
Micha de Vries
50b4b07b38
Implement IF EXISTS for additional REMOVE-statements ()
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-03-05 19:28:38 +00:00
Mees Delzenne
807b4681fa
Change KNN operator syntax. ()
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-03-05 16:01:17 +00:00
Emmanuel Keller
4eba4a61ab
The query planner should accept Datetime and Uuid values () 2024-03-05 15:10:43 +00:00
Przemyslaw Hugh Kaznowski
2914641827
Fix linting issues in main February 2024 () 2024-03-01 12:51:32 +00:00
Rushmore Mushambi
9d2fe88717
Add Surreal::wait_for () 2024-02-29 12:09:01 +00:00
Przemyslaw Hugh Kaznowski
888184f50f
Add notifications for LQ v2 on CF ()
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-02-27 15:18:25 +00:00
Micha de Vries
25c704a77f
Fix document not being available to delete permissions clause () 2024-02-21 10:04:45 +00:00
Przemyslaw Hugh Kaznowski
b52d630c4b
Adjust live statement to avoid storage on live query () 2024-02-20 14:32:37 +00:00
Przemyslaw Hugh Kaznowski
7b0771acb7
Change Feed stores original value of difference () 2024-02-20 11:11:49 +00:00
Farhan
485a224bcd
Add SurrealKV as an experimental backend store () 2024-02-15 20:47:10 +00:00
Emmanuel Keller
06a06338b2
Bug fix: In some conditions iteration stages would avoid iterating () 2024-02-15 11:32:20 +00:00
Mees Delzenne
3ccca6636b
Improve the js-surql value conversion for numbers () 2024-02-12 11:57:41 +00:00
Rushmore Mushambi
da94438e06
Revert "Bugfix: Compute futures in query conditions" () 2024-02-11 16:48:22 +00:00
Rushmore Mushambi
454509e4d1
Update dependencies and add ml2 feature () 2024-02-09 19:31:16 +00:00
Mees Delzenne
9ff0fade50
Bugfix: Fix a panic when invalid builtin function names are passed to the executor () 2024-02-07 15:13:40 +00:00
Rushmore Mushambi
2ee33e7bdb
Revert breaking changes from sql1 () 2024-02-05 16:21:23 +00:00
Rushmore Mushambi
690dd55a86
Extract core lib into a standalone crate ()
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-02-02 22:10:47 +00:00
Tobie Morgan Hitchcock
7f39754ec2
Fix: Ensure path idioms are correct when looping over () 2024-01-22 20:48:35 +00:00
Mees Delzenne
6592ba4368
Feature: Define types for subfields when defining fields. () 2024-01-22 07:24:14 +00:00
Micha de Vries
650eb8ed5d
Feature: Add READONLY keyword to DEFINE FIELD statement () 2024-01-19 16:58:54 +00:00
Gustavo
334c117a48
Feature: Add IF EXISTS to REMOVE TABLE statement ()
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-01-19 14:02:07 +00:00
Rushmore Mushambi
c5138245a0
Add support for LIVE SELECT in the SDK and CLI () 2024-01-16 11:48:29 +00:00
Gerard Guillemas Martos
618a4d1b42
Fix: Panic invoking parameters and functions without a database () 2024-01-10 17:56:13 +00:00
Mees Delzenne
2755f572fc
Introduce new experimental parser ()
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
2024-01-10 16:43:56 +00:00
Emmanuel Keller
310213f5e4
Feat: knn brute force ()
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-01-09 16:57:52 +00:00
Rushmore Mushambi
8bfdab31f2
bugfix: Ensure an attempt to set a protected variable returns an error ()
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-01-05 11:28:01 +00:00
Rushmore Mushambi
23d67305f5
Fix deserialisation and HTTP engine regressions () 2023-12-20 10:31:19 +00:00
Mees Delzenne
953e496e7d
Bugfix: Compute futures in query conditions () 2023-12-19 09:17:48 +00:00
Emmanuel Keller
66063f11cd
Bug fix: Issue with scoring on complex queries () 2023-12-19 08:56:04 +00:00
Mees Delzenne
e5fb44fabd
Bugfix: Respect alias for dynamic field queries with type::field. () 2023-12-15 21:52:09 +00:00
Mees Delzenne
a7f186424e
Bugfix: Prevent overflow in math::power () 2023-12-15 21:50:34 +00:00
Micha de Vries
f66b7c8eec
Expand logic for static value validation () 2023-12-14 21:23:58 +00:00
Emmanuel Keller
a6c50cb5f5
Feat: In Memory index store () 2023-12-13 13:37:24 +00:00
Maxwell Flitton
2ae8416791
Add support for ML model storage and execution () 2023-12-12 13:51:43 +00:00
Micha de Vries
daf02dc4e6
INSERT should respect unique indexes () 2023-12-07 14:45:12 +00:00
Micha de Vries
d658a0a3fb
Always display permissions () 2023-12-06 21:30:18 +00:00
Micha de Vries
aac8ec8a36
Default table permissions should be NONE () 2023-12-06 00:06:53 +00:00
Micha de Vries
6e7c22e3b0
Optional function arguments should be optional () 2023-11-27 21:38:05 +00:00
Micha de Vries
81d82c6110
Basic object:: functions () 2023-11-27 19:14:41 +00:00
Rushmore Mushambi
3baf1c6ea9
Add Query::with_stats to return query statistics along with the results () 2023-11-27 19:13:52 +00:00
Micha de Vries
d51d69d35a
Make SELECT ONLY deterministic () 2023-11-26 20:11:41 +00:00
Emmanuel Keller
9ead2cdbb6
MTree fully tested with Euclidean and Manhattan distances () 2023-11-21 21:25:00 +00:00
Micha de Vries
aa8591c7f4
Implement type::is::none() function () 2023-11-21 09:03:06 +00:00
Emmanuel Keller
6efd3e3d87
Feat: Analyzers to support functions ()
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2023-11-20 18:36:21 +00:00
Mees Delzenne
256a08a396
Factor out the parser into its own module. () 2023-11-18 13:56:13 +00:00
Rushmore Mushambi
2d19ac9f7a
Add live query API ()
Co-authored-by: Emmanuel Keller <keller.emmanuel@gmail.com>
2023-11-13 17:19:47 +00:00
Emmanuel Keller
0bdfbfe5df
Support of subfields for embedding indexing () 2023-11-13 16:11:38 +00:00
Micha de Vries
ed60a35b9b
Forward custom thrown errors in SIGNIN and SIGNUP queries () 2023-10-28 12:39:46 +00:00
Emmanuel Keller
b8ff68b464
Feat: Indexes used with the operators CONTAINS[ANY|ALL] () 2023-10-26 21:34:28 +00:00
Emmanuel Keller
08ac7579d1
Feat: Implements MTree index deletions () 2023-10-26 22:33:06 +01:00
Micha de Vries
38e0aa4aa9
Ability to cast string to a Thing/Record ID () 2023-10-26 13:18:49 +00:00
Micha de Vries
05907db1ea
Fix - Query results should be consistent and representative () 2023-10-26 10:05:44 +00:00
hchockarprasad
cfdd7c195c
Fix index plan for idiom param value () 2023-10-25 10:24:04 +00:00
Przemyslaw Hugh Kaznowski
872c6d9764
Add new clocks ()
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
2023-10-18 08:56:22 +00:00
Djole
9d9fde2db8
Fix local engine endpoints ()
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-10-10 06:01:21 +00:00
Emin Fedar
e6a8f598fe
feat: improve time module () () 2023-10-08 00:46:40 +00:00
Tristan F
9a554e4370
fix: interchangable limit & order () 2023-10-04 09:53:46 -04:00
Przemyslaw Hugh Kaznowski
c6f6ca8062
Improve bootstrapping for finding invalid data from beta versions. ()
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
2023-10-04 13:06:58 +00:00
Mees Delzenne
d9fa31f745
Fix clippy warnings in tests and clippy check tests in CI () 2023-10-04 09:51:34 +00:00
Jan S
74ad693709
Fix typos () 2023-09-28 09:17:29 +00:00
Raphael Darley
db5fb6df63
Switch transaction to enum from bool () 2023-09-26 13:02:53 +00:00
Micha de Vries
a0072cf133
Improve type::is::record() method () 2023-09-22 19:44:28 +00:00
Emmanuel Keller
0772a8c592
Feature: Vector Search: mtree index + knn operator ()
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-09-12 21:26:03 +01:00
Yusuke Kuoka
c51912ab81
Record table (re)definitions into change feeds ()
Co-authored-by: Yusuke Kuoka <yusuke.kuoka@surrealdb.com>
2023-09-12 16:55:07 +01:00
Emmanuel Keller
e4c6d817c4
Feature: Support of range queries in the query planner () 2023-09-12 16:43:32 +01:00
Yusuke Kuoka
3ab03b00a8
Fix change feeds enabled at the database-level ()
Co-authored-by: Yusuke Kuoka <yusuke.kuoka@surrealdb.com>
2023-09-12 14:57:27 +00:00
Rushmore Mushambi
3c48558ca2
Fix decimal deserialisation () 2023-09-12 15:34:58 +01:00
Yusuke Kuoka
5446666e7d
Fix panic on commit when defining db and tb in strict mode ()
Co-authored-by: Yusuke Kuoka <yusuke.kuoka@surrealdb.com>
Co-authored-by: Mees Delzenne <mees.delzenne@gmail.com>
2023-09-12 15:33:24 +01:00
Micha de Vries
5bfe598a96
Process scripting functions before "type::*" functions ()
Co-authored-by: Mees Delzenne <mees.delzenne@gmail.com>
2023-09-12 11:14:09 +01:00
Tobie Morgan Hitchcock
28368d83c9
Add live queries to INFO FOR TB statement () 2023-09-11 20:35:32 +01:00
Tobie Morgan Hitchcock
592a1b7c7e
Add $before and $after params to RETURN clauses () 2023-09-10 19:22:41 +01:00
Tobie Morgan Hitchcock
c3acab4614
Support FOR statements inside code blocks () 2023-09-10 12:30:30 +01:00
Mees Delzenne
b02567d233
Improved error messages () 2023-09-08 11:28:36 +00:00
Emmanuel Keller
fe78ca3c32
Feature: Add fallback reason to the explanation () 2023-09-07 23:36:39 +00:00
Tobie Morgan Hitchcock
e316498e96
Add ONLY keyword for single result outputs () 2023-09-05 16:22:13 +01:00
Tobie Morgan Hitchcock
e008745a54
Allow any value to be used for error type in THROW statement () 2023-09-05 16:21:34 +01:00
Tobie Morgan Hitchcock
abb5ce00db
Ensure incorrect data causes error () 2023-09-04 18:54:17 +01:00
Micha de Vries
22c36b80c8
move is::* -> string::is::*, add new type::is::* fncs () 2023-09-04 16:10:18 +00:00
Mees Delzenne
48a2bb52ac
Provide existing context to functions called from scripting functions () 2023-09-04 12:12:24 +00:00
Tobie Morgan Hitchcock
fc7f5cb0b0
Support variable field projection with type::field() and type::fields() () 2023-08-31 13:06:10 +01:00
Salvador Girones Gil
bdac1fae72
[security] Introduce "allow-guests". Deny all caps by default () 2023-08-30 18:01:30 +00:00
Emmanuel Keller
0d43e7a156
Implements revision on indexes states () 2023-08-29 20:21:55 +01:00
Mees Delzenne
daf6743c4e
Miscellaneous parser improvements () 2023-08-29 11:50:00 +01:00
Tobie Morgan Hitchcock
8be97a697f
Support ON DUPLICATE KEY UPDATE when a unique index entry exists () 2023-08-29 09:46:48 +01:00