Commit graph

1250 commits

Author SHA1 Message Date
Przemyslaw Hugh Kaznowski
888184f50f
Add notifications for LQ v2 on CF (#3480)
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-02-27 15:18:25 +00:00
Pratim
04c8b864cd
Fix Axum example warnings (#3585) 2024-02-26 10:47:35 +00:00
Micha de Vries
25c704a77f
Fix document not being available to delete permissions clause (#3555) 2024-02-21 10:04:45 +00:00
Przemyslaw Hugh Kaznowski
b52d630c4b
Adjust live statement to avoid storage on live query (#3523) 2024-02-20 14:32:37 +00:00
Przemyslaw Hugh Kaznowski
7b0771acb7
Change Feed stores original value of difference (#3420) 2024-02-20 11:11:49 +00:00
Pratim
c83928be13
Refactor the Axum example (#3542) 2024-02-19 15:11:58 +00:00
Farhan
485a224bcd
Add SurrealKV as an experimental backend store (#3451) 2024-02-15 20:47:10 +00:00
Emmanuel Keller
06a06338b2
Bug fix: In some conditions iteration stages would avoid iterating (#3513) 2024-02-15 11:32:20 +00:00
Rushmore Mushambi
567a2a5856
Improve Surreal<Any> documentation (#3506)
Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
2024-02-13 14:22:11 +00:00
Emmanuel Keller
842ee7a264
Refactor: Update bench (#3484) 2024-02-12 16:12:56 +00:00
Mees Delzenne
3ccca6636b
Improve the js-surql value conversion for numbers (#3460) 2024-02-12 11:57:41 +00:00
Rushmore Mushambi
d55d1a3b6e
Implement revision types for client/server communication (#3474) 2024-02-12 11:52:36 +00:00
Emmanuel Keller
2d2b3a40bb
Refactor: In MTree large vector improvement (#3466) 2024-02-12 11:31:35 +00:00
Rushmore Mushambi
da94438e06
Revert "Bugfix: Compute futures in query conditions" (#3476) 2024-02-11 16:48:22 +00:00
Rushmore Mushambi
634a2baeac
Fix the five second delay in Wasm after initial connection (#3478) 2024-02-11 12:36:47 +00:00
Rushmore Mushambi
454509e4d1
Update dependencies and add ml2 feature (#3385) 2024-02-09 19:31:16 +00:00
Rushmore Mushambi
40039dc1ad
Don't include jwks in docs.rs features (#3465) 2024-02-09 09:41:42 +00:00
Rushmore Mushambi
211a3fe867
Fix documentation builds on docs.rs (#3462) 2024-02-08 15:43:27 +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
Przemyslaw Hugh Kaznowski
8bce4d7789
Introduce guidepost code for live queries on change feeds (#3392)
Co-authored-by: Rushmore Mushambi <rushmore@webenchanter.com>
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-02-06 14:46:44 +00:00
Rushmore Mushambi
b0b438b4b8
Bump version to v1.3.0 (#3444)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-05 22:06:37 +00:00
Rushmore Mushambi
2ee33e7bdb
Revert breaking changes from sql1 (#3433) 2024-02-05 16:21:23 +00:00
Rushmore Mushambi
05a86ead5b
Release the core crate together with the SDK crate and binaries (#3437) 2024-02-05 12:01:39 +00:00
Rushmore Mushambi
690dd55a86
Extract core lib into a standalone crate (#3423)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-02-02 22:10:47 +00:00
Przemyslaw Hugh Kaznowski
0bc284b6dd
Reduce scope of some tick functions in ds RE change feeds (#3403) 2024-01-26 14:31:45 +00:00
Przemyslaw Hugh Kaznowski
c5aca609cd
Add live query feature flag (#3396) 2024-01-25 15:31:30 +00:00
Tobie Morgan Hitchcock
7f39754ec2
Fix: Ensure path idioms are correct when looping over (#3363) 2024-01-22 20:48:35 +00:00
Salvador Girones Gil
307d7d68fc
[ci/builds] Reuse binary builds for Docker. Static link ONNX runtime (#3382) 2024-01-22 17:51:49 +00:00
Anirban Halder
af412132c2
Atomic clock fix (#3329)
Co-authored-by: Przemyslaw Hugh Kaznowski <hugh@surrealdb.com>
2024-01-22 15:29:09 +00:00
Rushmore Mushambi
7ba93848d4
Unpin rustls (#3380) 2024-01-22 14:11:10 +00:00
ActuallyHappening
2a415b08de
doc: Thing.tb stands for Table name (#3375) 2024-01-22 08:20:02 +00:00
Mees Delzenne
6592ba4368
Feature: Define types for subfields when defining fields. (#3146) 2024-01-22 07:24:14 +00:00
Tobie Morgan Hitchcock
f090ff3360
Ensure advanced DEFINE PARAM parameters are computed correctly (#3358) 2024-01-19 17:35:50 +00:00
Micha de Vries
650eb8ed5d
Feature: Add READONLY keyword to DEFINE FIELD statement (#3152) 2024-01-19 16:58:54 +00:00
Gustavo
334c117a48
Feature: Add IF EXISTS to REMOVE TABLE statement (#3243)
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
Micha de Vries
595c994062
Implement missing errors for missing clauses on DEFINE-statements (#3356) 2024-01-19 12:35:52 +00:00
github-actions[bot]
81c3528a27
Bump version to v1.1.1 (#3343)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-16 16:21:36 +00:00
Mees Delzenne
30bd5adde7
Bump rquickjs version (#3332) 2024-01-16 12:51:25 +00:00
Rushmore Mushambi
c5138245a0
Add support for LIVE SELECT in the SDK and CLI (#3309) 2024-01-16 11:48:29 +00:00
Tobie Morgan Hitchcock
f587289923
Fix WebSocket notification sending format (#3314) 2024-01-15 19:38:30 +00:00
Gerard Guillemas Martos
5e97552410
Fix: Missing custom claims from token parameter (#3328) 2024-01-15 19:11:43 +00:00
Mees Delzenne
c27a555bc6
Fix a bug where the kind parser would eat whitespace (#3306) 2024-01-13 17:04:19 +00:00
Mees Delzenne
ab6726fab4
Quick fix for new parser PR fixing benchmark. (#3300) 2024-01-11 08:04:40 +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
Przemyslaw Hugh Kaznowski
96249c2a34
Add pagination to scan (#2951) 2024-01-09 17:47:23 +00:00
Gerard Guillemas Martos
ccb4813886
Implement support for remote JSON Web Key Sets (#3198) 2024-01-09 17:17:48 +00:00
github-actions[bot]
65a5867b28
Bump version to v1.1.0 (#3294)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-09 17:27:11 +00:00
Emmanuel Keller
310213f5e4
Feat: knn brute force (#3043)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-01-09 16:57:52 +00:00
Nathaniel Brough
5d176d4c77
fuzz: Add structured executor (#3285) 2024-01-09 15:34:52 +00:00
Tobie Morgan Hitchcock
a35fc0d04d
Improve WebSocket protocol implementation (#3291) 2024-01-09 15:27:03 +00:00
Rushmore Mushambi
8e9bd3a2d6
Fix mtree benchmark build (#3283) 2024-01-08 10:16:57 +00:00
Rushmore Mushambi
9d39acc99b
Fix leaking module and re-add lost documentation (#3280) 2024-01-05 19:07:45 +00:00
Gerard Guillemas Martos
d33dea7462
Bugfix: Fix duration addition in timeout causing overflow (#3258) 2024-01-05 15:21:00 +00:00
Mees Delzenne
92b0f202f5
Update rquickjs version (#3261)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-01-05 12:42:18 +00:00
Rushmore Mushambi
8bfdab31f2
bugfix: Ensure an attempt to set a protected variable returns an error (#3216)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-01-05 11:28:01 +00:00
Julian
8949ca46d8
Add functions for working with semver strings (#3254) 2024-01-04 22:08:06 +00:00
Mees Delzenne
4c07aff160
Fix a bug where a non-empty list parser would parse empty lists (#3256) 2024-01-04 21:46:37 +00:00
Rushmore Mushambi
5a069bebcf
Re-export surrealdb::sql::ParseError (#3269) 2024-01-04 21:37:35 +00:00
Rushmore Mushambi
d7ae63ae49
Remove surrealdb::sql::error module (#3268) 2024-01-04 21:34:51 +00:00
Rushmore Mushambi
8a4e2a347e
Fix lints for Rust v1.75.0 (#3246) 2024-01-02 23:11:45 +00:00
Rushmore Mushambi
7b197c2acd
impl Drop for live::Stream (#3215) 2023-12-30 10:45:53 +00:00
Gerard Guillemas Martos
a23fb77d35
Fix: Limit recursion depth when parsing nested RELATE statements (#3232) 2023-12-30 09:37:52 +00:00
github-actions[bot]
855fd000f4
Bump version to v1.0.2 (#3212)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-21 20:56:14 +00:00
Maxwell Flitton
a01c1347cb
Update the surrealml-core version (#3184) 2023-12-20 18:50:28 +00:00
Rushmore Mushambi
161bd8d24c
Refactor live query API to improve consistency and code reuse (#3182) 2023-12-20 13:00:09 +00:00
Rushmore Mushambi
23d67305f5
Fix deserialisation and HTTP engine regressions (#3180) 2023-12-20 10:31:19 +00:00
Tony Giorgio
7e25b36765
Use wasm32 cfg flag for kvs (#3131)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-12-19 09:47:35 +00:00
Mees Delzenne
953e496e7d
Bugfix: Compute futures in query conditions (#3118) 2023-12-19 09:17:48 +00:00
Emmanuel Keller
66063f11cd
Bug fix: Issue with scoring on complex queries (#3174) 2023-12-19 08:56:04 +00:00
Gerard Guillemas Martos
cf08b0607f
Fix: Replace custom JWT parser causing decoding issues (#3165)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2023-12-19 08:53:10 +00:00
Flint6872
d4cc3272da
Upgrade Axum example to Axum 0.7.2 (#3172)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-12-18 12:53:25 +00:00
Emmanuel Keller
c9f037f7a6
Bug fix: Remove min/1000 in tx:delp (#3167) 2023-12-15 21:53:04 +00:00
Mees Delzenne
e5fb44fabd
Bugfix: Respect alias for dynamic field queries with type::field. (#3163) 2023-12-15 21:52:09 +00:00
Mees Delzenne
139320bdde
Bugfix: Fix error message pointing to wrong character. (#3164) 2023-12-15 21:50:57 +00:00
Mees Delzenne
a7f186424e
Bugfix: Prevent overflow in math::power (#3162) 2023-12-15 21:50:34 +00:00
Micha de Vries
f66b7c8eec
Expand logic for static value validation (#3151) 2023-12-14 21:23:58 +00:00
github-actions[bot]
8ad4256a3e
Bump version to v1.0.1 (#3156)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-14 17:42:29 +00:00
Mees Delzenne
8c40a0b6bc
Bugfix: Make record id string parsing never fail early (#3144) 2023-12-13 13:38:12 +00:00
Emmanuel Keller
a6c50cb5f5
Feat: In Memory index store (#3020) 2023-12-13 13:37:24 +00:00
Maxwell Flitton
2ae8416791
Add support for ML model storage and execution (#3015) 2023-12-12 13:51:43 +00:00
Mees Delzenne
01a07b7c91
Fix clippy warnings in tests (#3101) 2023-12-09 20:25:50 +00:00
Rushmore Mushambi
846282f5ae
Support pre-release servers (#3094) 2023-12-08 09:18:38 +00:00
Micha de Vries
daf02dc4e6
INSERT should respect unique indexes (#3092) 2023-12-07 14:45:12 +00:00
Emmanuel Keller
c3a3116700
Temporarily ignore flaky mtree test (#3086) 2023-12-07 10:03:14 +00:00
Micha de Vries
d658a0a3fb
Always display permissions (#3083) 2023-12-06 21:30:18 +00:00
Mees Delzenne
42f506a916
Bugfix: Fix inconsistant record parsing (#3076) 2023-12-06 00:08:16 +00:00
Micha de Vries
aac8ec8a36
Default table permissions should be NONE (#3074) 2023-12-06 00:06:53 +00:00
Tobie Morgan Hitchcock
1d3844ff69
Update compatible dependencies (#3069) 2023-12-05 12:12:56 +00:00
Salvador Girones Gil
e4aa85a843
[rocksdb/speedb] Define keep_log_file_num. Default to 20 (#3064) 2023-12-04 13:17:27 +01:00
Gerard Guillemas Martos
06504873f6
Merge pull request from GHSA-6r8p-hpg7-825g
* Dive before parsing 'ifelse' and basic idioms

* Check 'get' path length before recursing

* Add tests to check for intended behaviour

* Remove unused import

* Use correct name for parsed entity

* Add comment
2023-12-04 10:46:21 +01:00
Gerard Guillemas Martos
bc4ffcb4cf
Revert to using legacy authentication in signin by default (#3052)
Co-authored-by: Salvador Girones Gil <salvadorgirones@gmail.com>
2023-12-04 08:47:37 +00:00
Rushmore Mushambi
69572e9e6b
Make all futures easier to send across threads (#3053) 2023-12-01 15:25:28 +00:00
Rushmore Mushambi
a8ed51f629
Make Stream easier to send across threads (#3042) 2023-11-29 09:35:52 +00:00
Gerard Guillemas Martos
a70ddb2e2a
[auth] Support auth levels for basic auth (#2985)
Co-authored-by: Salvador Girones Gil <salvadorgirones@gmail.com>
2023-11-28 14:53:40 +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
Rushmore Mushambi
3baf1c6ea9
Add Query::with_stats to return query statistics along with the results (#3019) 2023-11-27 19:13:52 +00:00
Mees Delzenne
a97d749b8a
Implement string prefixes for old parser. (#3031) 2023-11-27 19:12:36 +00:00
Tobie Morgan Hitchcock
73d66ed2be
Update 3rd party dependencies (#3026) 2023-11-27 10:23:26 +00:00
Micha de Vries
d51d69d35a
Make SELECT ONLY deterministic (#3025) 2023-11-26 20:11:41 +00:00
Noyan Alimov
a58ad52acd
made array::flatten function aggregate (#3018) 2023-11-25 15:23:19 +00:00
Emmanuel Keller
9ead2cdbb6
MTree fully tested with Euclidean and Manhattan distances (#3006) 2023-11-21 21:25:00 +00:00
Rushmore Mushambi
468d72ff81
Fix the nightly channel (#3012) 2023-11-21 13:24:59 +00:00
Micha de Vries
aa8591c7f4
Implement type::is::none() function (#3011) 2023-11-21 09:03:06 +00:00
Tobie Morgan Hitchcock
3f43e741c2
Improve WebSocket performance (#2999)
Co-authored-by: Salvador Girones Gil <salvadorgirones@gmail.com>
2023-11-20 19:08:07 +00:00
Tobie Morgan Hitchcock
9c0d107588
Improve RocksDB and SpeeDB performance (#3000) 2023-11-20 18:47:44 +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
Tobie Morgan Hitchcock
5b23602359
Improve performance of CREATE statements, and record insertion (#3001) 2023-11-20 18:13:34 +00:00
Rushmore Mushambi
7d75fe1877
Drop uuid_unstable as it is no longer necessary (#3009) 2023-11-20 17:42:44 +00:00
Gerard Guillemas Martos
2584970b1d
Update third-party dependencies (#3005) 2023-11-20 15:50:37 +00:00
Micha de Vries
5da77aa1ef
Env flag: SURREAL_INSECURE_FORWARD_SCOPE_ERRORS (#3003)
Co-authored-by: Salvador Girones Gil <salvadorgirones@gmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-11-20 14:54:27 +00:00
Mees Delzenne
256a08a396
Factor out the parser into its own module. (#2979) 2023-11-18 13:56:13 +00:00
Salvador Girones Gil
b0be22360e
[bench] New benchmarks against different datastores (#2956) 2023-11-18 13:55:01 +00:00
Emmanuel Keller
7a34452262
Bug fix: possible corruption of MTree and incomplete knn (#2986) 2023-11-18 07:26:11 +00:00
Micha de Vries
afb9f49c2f
Pass IP & Origin onto session used by scope queries (#2991) 2023-11-17 21:33:11 +00:00
Rushmore Mushambi
98e866dfd1
Add FETCH example (#2981) 2023-11-15 09:44:02 +00:00
Rushmore Mushambi
2d19ac9f7a
Add live query API (#2919)
Co-authored-by: Emmanuel Keller <keller.emmanuel@gmail.com>
2023-11-13 17:19:47 +00:00
Fredrik Bondza
57724a27ca
Change math::median indexing for even length arrays (#2971) 2023-11-13 16:43:06 +00:00
Emmanuel Keller
0bdfbfe5df
Support of subfields for embedding indexing (#2967) 2023-11-13 16:11:38 +00:00
Mees Delzenne
d5ec59a039
Bugfix: Fix identifiers which look like numbers failing to parse. (#2972)
Co-authored-by: Salvador Girones Gil <salvadorgirones@gmail.com>
2023-11-13 16:06:00 +00:00
Mees Delzenne
bdb68c9eaa
Bugfix: Fix ORDER BY RAND() failing to parse when selecting specific fields. (#2964) 2023-11-10 18:36:52 +00:00
Emmanuel Keller
ca2c1560da
Repetitive expressions and idioms are not anymore re-evaluated (#2935) 2023-11-08 10:06:52 +00:00
Yusuke Kuoka
cf040b36ba
Make Remove{Table,Database,Namespace} faster for TiKV and FDB (#2915) 2023-11-01 16:01:00 +00:00
Micha de Vries
ed60a35b9b
Forward custom thrown errors in SIGNIN and SIGNUP queries (#2902) 2023-10-28 12:39:46 +00:00
Przemyslaw Hugh Kaznowski
4b255efaea
Make cluster tick handle errors and rollback gracefully (#2860) 2023-10-26 22:47:12 +00:00
Emmanuel Keller
b8ff68b464
Feat: Indexes used with the operators CONTAINS[ANY|ALL] (#2879) 2023-10-26 21:34:28 +00:00
Emmanuel Keller
08ac7579d1
Feat: Implements MTree index deletions (#2738) 2023-10-26 22:33:06 +01:00
Przemyslaw Hugh Kaznowski
42cff67bd1
Fix cluster startup to handle stray heartbeats (#2891) 2023-10-26 15:24:46 +00:00
Micha de Vries
38e0aa4aa9
Ability to cast string to a Thing/Record ID (#2834) 2023-10-26 13:18:49 +00:00
Przemyslaw Hugh Kaznowski
7d5d6c4325
Revert breaking change on key clash and introduce new error (#2823) 2023-10-26 13:17:31 +00:00
Micha de Vries
05907db1ea
Fix #2513 - Query results should be consistent and representative (#2887) 2023-10-26 10:05:44 +00:00
Mees Delzenne
7f935c17fe
Bugfix: fix bug where error offset could underflow. (#2859) 2023-10-25 21:14:17 +00:00
kxt
fcd5c252ec
Use sha1 crate instead of obsolete sha-1 (#2883) 2023-10-25 17:08:46 +01:00
Mees Delzenne
66810fd36b
Allow a model to take multiple arguments (#2890) 2023-10-25 11:38:03 +00:00
hchockarprasad
cfdd7c195c
Fix index plan for idiom param value (#2865) 2023-10-25 10:24:04 +00:00
Finn Bear
4c1ceac6eb
Feature #2720 - add remainder aka modulo operator. (#2868) 2023-10-23 13:37:21 +00:00
Roman Geber
f185c595f4
Clean paths in the start command and honour ~ (#2787)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-10-19 19:48:31 +00:00
Przemyslaw Hugh Kaznowski
872c6d9764
Add new clocks (#2778)
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
2023-10-18 08:56:22 +00:00
Brian
87859158d3
bump tungstenite to 0.20.1 (#2807)
Co-authored-by: Przemyslaw Hugh Kaznowski <hughkaznowski@protonmail.com>
Co-authored-by: Tristan F. <LeoDog896@hotmail.com>
2023-10-18 08:54:04 +00:00
Finn Bear
3a3125d030
Optimize time::from::nanos function. (#2811) 2023-10-18 08:53:25 +00:00
Djole
9d9fde2db8
Fix local engine endpoints (#2813)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-10-10 06:01:21 +00:00
Emin Fedar
e6a8f598fe
feat: improve time module (#2800) (#2801) 2023-10-08 00:46:40 +00:00
Tristan F
9a554e4370
fix: interchangable limit & order (#2774) 2023-10-04 09:53:46 -04:00
Przemyslaw Hugh Kaznowski
c6f6ca8062
Improve bootstrapping for finding invalid data from beta versions. (#2700)
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
2023-10-04 13:06:58 +00:00
Mees Delzenne
8b2ae9fc99
Bugfix: Fix wrong function name export and function name parsing (#2786) 2023-10-04 12:02:20 +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
Jan S
74ad693709
Fix typos (#2764) 2023-09-28 09:17:29 +00:00
Przemyslaw Hugh Kaznowski
67fa54d792
Introduce key clash errors (#2558)
Co-authored-by: Emmanuel Keller <keller.emmanuel@gmail.com>
2023-09-27 10:35:01 +00:00
Raphael Darley
db5fb6df63
Switch transaction to enum from bool (#2743) 2023-09-26 13:02:53 +00:00