Commit graph

375 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
4145f70463
Fix ensuring unreachable code returns an error instead of panicking (#4665) 2024-09-02 11:02:53 +01:00
Tobie Morgan Hitchcock
185cb9e568
Fix cargo dependency loading issue (#4660) 2024-09-02 09:43:41 +00:00
Tobie Morgan Hitchcock
1153a2469b
Fix complex Record IDs from being output incorrectly within JavaScript functions (#4661) 2024-09-02 09:19:25 +00:00
Tobie Morgan Hitchcock
a0028e2c7a
Fix allowing any to be used for optional arguments (#4659) 2024-09-02 09:15:13 +00:00
Tobie Morgan Hitchcock
7588c7e31a
Fix bug with object array-indexed string field names appearing with quotation marks (#4657) 2024-09-02 09:13:47 +00:00
Emmanuel Keller
cefb95df28
[Bug] Concurrent indexing fails on record updates (#4629) 2024-08-30 16:26:01 +00:00
Julian
3ded680b33
Escape "table" indents (#4655) 2024-08-30 14:34:18 +00:00
Emmanuel Keller
b4937b96e9
Avoid calling the storage engine when range scan is invalid (#4641) 2024-08-30 07:40:09 +00:00
Julian
1e6a3a8f9b
Display function return types (#4643) 2024-08-29 19:05:53 +01:00
Dave MacLeod
ba5c1436ff
Show ENFORCED keyword in INFO statement (#4635) 2024-08-29 14:12:23 +01:00
Dmitrii Blaginin
ffbdcb3d3f
Handle f32 as a part of UUID (#4611)
Co-authored-by: Mees Delzenne <mees.delzenne@gmail.com>
2024-08-28 13:03:49 +01:00
Tobie Morgan Hitchcock
6fbf84782f
Ensure failures are caught and transactions rolledback (#4621)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-08-28 11:35:41 +01:00
Emmanuel Keller
e5bf40ae01
[Feat] Async indexing: appending queue is persistent (#4622) 2024-08-28 10:08:59 +00:00
Mees Delzenne
a5abc66e06
Remove async-recursion as a dependency from core (#4617) 2024-08-27 16:48:05 +01:00
Tobie Morgan Hitchcock
93a9ba3cb6
Improve array function implementations, and improve value::diff() and value::patch() functions (#4612) 2024-08-27 16:34:40 +01:00
Rushmore Mushambi
e9b36ba162
Bump MSRV to 1.80 (#4619) 2024-08-27 14:36:47 +00:00
Julian
6af8ea9165
Fix type not included in LET statement display (#4615) 2024-08-27 14:35:21 +00:00
Raphael Darley
4775bf6b08
Add insert relation methods (#4566)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-27 11:08:40 +00:00
Gerard Guillemas Martos
91f9260ea1
Fixes to the SurrealDB Rust API for public consumption (#4613) 2024-08-27 10:45:03 +00:00
Micha de Vries
876e55918f
surreal fix command (#4605)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-27 09:20:53 +00:00
Tobie Morgan Hitchcock
050f7c577b
Remove explicit transactions from export (#4610) 2024-08-26 12:24:06 +00:00
Micha de Vries
5165a34a27
Revision Value::Range, Id::Uuid, DefineStatement::Scope and DefineStatement::Token (#4586)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-08-26 10:57:18 +00:00
Tobie Morgan Hitchcock
f4e3d4f4e2
Add value::diff() and value::patch() functions (#4608) 2024-08-25 15:13:23 +01:00
Tobie Morgan Hitchcock
419f5d52c7
Change meta functions to record and add record::exists() function (#4602) 2024-08-25 10:01:43 +01:00
Dmitrii Blaginin
687c8b662e
Compute ID in create statement (#4468)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-23 15:55:23 +00:00
Tobie Morgan Hitchcock
6d4176549d
Fix range queries and flaky tests (#4597) 2024-08-23 16:34:06 +01:00
Mees Delzenne
4c0e9aeef5
Update revision (#4595) 2024-08-23 16:00:24 +01:00
Emmanuel Keller
0b5d79cae0
[Feat] SELECT ORDER should use the index iterator when available (#4525) 2024-08-23 14:40:34 +01:00
Gerard Guillemas Martos
d2354caf8f
Rename access-related keys to prevent collisions (#4589) 2024-08-23 11:49:28 +01:00
Emmanuel Keller
04ae6e7a52
build fix (#4591) 2024-08-23 10:52:42 +01:00
Micha de Vries
70584115ab
Versioned storage (#4581)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-23 09:27:21 +01:00
Sergii Glushchenko
f2e598379b
Insert with version (#4583) 2024-08-22 22:34:33 +00:00
Raphael Darley
da308cc8c6
add basic enum support (#4576) 2024-08-22 23:31:00 +01:00
Raphael Darley
a9e6efd9b1
Add unspecified resource (#4577) 2024-08-22 22:09:43 +01:00
Micha de Vries
208d6a897e
Fix closure "either" type display implementation (#4585) 2024-08-22 17:24:11 +01:00
Micha de Vries
7c41aef3ba
Enforced relations (#4579) 2024-08-22 15:25:20 +00:00
Aman Kumar
c5e8324653
feat-4416: Ensure table definition exists on live queries (#4426)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-22 15:24:59 +01:00
Rushmore Mushambi
898d75b744
Rename lib to sdk (#4561) 2024-08-22 10:26:03 +00:00
Micha de Vries
b23b25b7d1
Fix record id escaping to match parser (#4580) 2024-08-22 08:41:11 +00:00
David Bottiau
c7bcd4f3a6
feat: allow cbor uuid serialization for record id part (#4491)
Co-authored-by: Micha de Vries <micha@devrie.sh>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-08-22 08:35:54 +00:00
Sergii Glushchenko
f795434345
Replace ok_or with ok_or_else (#4573) 2024-08-21 19:47:54 +01:00
Micha de Vries
f2ccedb8c1
Literal types (#4557) 2024-08-21 14:50:37 +00:00
Sergii Glushchenko
13b6788540
Create with version (#4548) 2024-08-21 13:54:58 +00:00
Julian
95f9f8dacd
Allow transferring raw futures over cbor (#4504)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-08-21 12:50:32 +00:00
Mees Delzenne
4c3f4d0fd5
Detach value newtype (#4498)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-21 12:34:16 +00:00
Micha de Vries
e25eca71d7
SCHEMAFULL table should be TYPE NORMAL by default (#4558) 2024-08-21 08:23:56 +00:00
Rushmore Mushambi
1f6e6fcfc5
Fix release builds (#4559) 2024-08-20 13:50:10 +00:00
Micha de Vries
e77df62114
Range values (#4506) 2024-08-20 11:42:06 +00:00
Raphael Darley
e18cd17ca6
deprecate file:// (#4505) 2024-08-20 11:44:22 +01:00
Emmanuel Keller
0a4801dcf8
[Feat] HNSW persistence (#4214)
Co-authored-by: David Bottiau <david.bottiau@outlook.com>
Co-authored-by: Micha de Vries <micha@devrie.sh>
Co-authored-by: Micha de Vries <mt.dev@hotmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: ekgns33 <76658405+ekgns33@users.noreply.github.com>
Co-authored-by: Sergii Glushchenko <sergii.glushchenko@surrealdb.com>
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
2024-08-20 11:42:58 +01:00
Emmanuel Keller
d86a734d04
[Feat] Asynchronous indexing (#4480)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-08-20 09:20:53 +00:00
Remzi Yang
cb02db1477
upgrade rust_decimal to 1.36.0 (#4550) 2024-08-20 08:27:18 +01:00
Micha de Vries
c7c0249d34
Allow isolated context to read protected params (#4533) 2024-08-19 12:09:35 +01:00
Raphael Darley
9657dd80c7
Add graphql support (#3797)
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Micha de Vries <mt.dev@hotmail.com>
2024-08-18 18:49:27 +00:00
Maxwell Flitton
be105bd30c
Return an array / vector from ml functions (#4523)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-16 22:53:43 +00:00
Micha de Vries
6d26797e56
Remove println (#4524)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-08-16 20:08:14 +01:00
Micha de Vries
78b5f8f1d0
Idiom Optional Part (#4514) 2024-08-16 15:53:28 +00:00
Chiru B
4749af1ba4
feat-4429: Blake3 Hash (#4434)
Co-authored-by: itsezc <itsezc>
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-08-16 15:58:38 +01:00
Mees Delzenne
63bc5fa1db
Fix certain identifier characters not being parsed correctly (#4522) 2024-08-16 13:59:59 +00:00
Emmanuel Keller
6e9d04d4d7
Remove Context lifetimes (#4484) 2024-08-15 16:01:02 +00:00
Tobie Morgan Hitchcock
d7b392cf8b
Yield remote fields without needing to clear the original field value (#4515) 2024-08-15 10:22:20 +01:00
Micha de Vries
ec0c28fa74
.chain() method (#4513) 2024-08-15 08:17:00 +00:00
Sergii Glushchenko
6502b5ed8a
Select from individual record with version (#4510) 2024-08-15 05:29:53 +00:00
ekgns33
212d5a9e5a
Add vector::scale() method (#4292)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-08-14 17:01:10 +00:00
David Bottiau
0069cba8a3
Add more array functions (#4184)
Co-authored-by: Micha de Vries <micha@devrie.sh>
Co-authored-by: Micha de Vries <mt.dev@hotmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-14 15:11:22 +00:00
Mees Delzenne
ee8e6f00d7
Fix params not supporting delimiters (#4411) 2024-08-13 21:50:40 +01:00
Rushmore Mushambi
4181367b98
Fix nightly builds (#4507) 2024-08-13 21:49:36 +01:00
Raphael Darley
bb1eba4aab
Add typed LET statement (#4476) 2024-08-13 20:47:17 +01:00
Raphael Darley
5d92c7c02c
implement typed function returns (#4475)
Co-authored-by: Micha de Vries <micha@devrie.sh>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-13 17:10:13 +00:00
Gerard Guillemas Martos
c3d788ff4a
Add BEARER access type and its basic grant management (#4302)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-08-13 16:38:17 +00:00
Sergii Glushchenko
a87433c4d3
Experimental: select all from table with version (#4494) 2024-08-13 15:35:30 +00:00
Gerard Guillemas Martos
a8b96936f4
Check for single and multiple token audiences (#4493) 2024-08-13 11:40:16 +00:00
Micha de Vries
89f1de825a
Fix record<T> casting from string (#4496)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-13 09:50:40 +00:00
Rushmore Mushambi
57c7f5ec03
Serialisation improvements for sql::Value (#4255) 2024-08-13 08:29:43 +00:00
Gerard Guillemas Martos
d038fb2c7a
Disable default audience validation also for JWKS (#4495) 2024-08-12 16:05:19 +00:00
Micha de Vries
f8ba01a688
Fix "specific" match statement exiting early (#4492) 2024-08-12 09:05:12 +00:00
Drew Ridley
d2c59f0b71
Fix JWT 'aud' array (#4488)
Co-authored-by: Drew Ridley <drewr@Drews-MacBook-Pro.local>
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
2024-08-12 08:50:27 +00:00
Micha de Vries
c0be139e59
Implement anonymous functions (#4474)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-10 12:44:12 +00:00
Micha de Vries
3f5ef43248
Skip ASSERT for type option<T> and value NONE (#4483)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-08 17:11:39 +01:00
Micha de Vries
c5a6e08225
Method chaining (#4469) 2024-08-08 11:43:35 +00:00
Tobie Morgan Hitchcock
82349eb557
Slight improvements to RocksDB range scans (#4478) 2024-08-08 10:54:03 +01:00
Tobie Morgan Hitchcock
85c30e8eeb
Add aliases for complex feature flag combinations (#4479) 2024-08-08 10:46:21 +01:00
Farhan
e13c277f9d
chore: bump surrealkv version 0.3.1 (#4467)
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
2024-08-07 14:05:25 +00:00
Gerard Guillemas Martos
e60ce36083
Use upstream jsonwebtoken crate (#4472) 2024-08-07 11:38:02 +00:00
Raphael Darley
4f3b96334e
Upgrade to http/hyper v1.0 (#3726)
Co-authored-by: Salvador Girones <salvadorgirones@gmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-08-07 10:42:25 +00:00
Micha de Vries
ebc140e8ad
DEFINE @kind OVERWRITE (#4465) 2024-08-06 14:10:58 +00:00
Mees Delzenne
0505a8ef6d
Fix like operator not being implemented (#4460) 2024-08-05 17:07:41 +00:00
Micha de Vries
36d83ebccf
Remove faulty flatten (#4463) 2024-08-05 17:06:54 +00:00
Micha de Vries
6d2f4a9833
Improve string::is::datetime and string::is::uuid, Add string::is::record (#4462) 2024-08-05 14:46:08 +00:00
Dave MacLeod
27e17d7cdd
Add array::windows() function (#4445) 2024-08-02 12:50:40 +00:00
Albert Marashi
e8f55b60f2
Fixes division by zero bug by returning NAN for divisions by zero? (#4402)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-08-02 12:49:46 +00:00
Dmitrii Blaginin
e25ddfc408
Fix validation on schemafull RELATE (#4226) 2024-08-01 11:23:11 +00:00
Micha de Vries
eab548c5a3
Idiom destructuring (#4443) 2024-07-31 15:20:19 +00:00
Micha de Vries
24e9534155
ALTER TABLE-statement (#4435)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-07-30 17:25:11 +01:00
Gerard Guillemas Martos
d030c7d498
Move AUTHENTICATE clause to DEFINE ACCESS statement root (#4385) 2024-07-30 15:23:54 +01:00
Tobie Morgan Hitchcock
05a95df56d
Remove unnecessary backticks from INFO FOR statement output (#4438) 2024-07-30 07:46:35 +01:00
Aman Kumar
6e87f3ef66
Fix-4415: Fixes the Live Query Panic issue (#4437) 2024-07-30 07:46:21 +01:00
Tobie Morgan Hitchcock
bf2eb32f01
Add improved instrumentation to kvs module layer (#4418) 2024-07-30 06:51:28 +01:00
Emmanuel Keller
fed79d4808
Bump to rustc 1.80.0 (#4436)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-07-29 15:39:38 +00:00
Mees Delzenne
2b1e6a32ea
Make communication with the router task more type-safe (#4406) 2024-07-23 14:38:54 +00:00