Commit graph

371 commits

Author SHA1 Message Date
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
Emmanuel Keller
08f4ad6c82
MTree bench improvements (replaces hashbrown with ahash) (#4408) 2024-07-23 08:24:00 +00:00
Micha de Vries
4bd1185ff9
Fix querying complex edge table (#4391) 2024-07-20 14:19:08 +01:00
Emmanuel Keller
c415d37a72
MTree/HNSW tests/benches work (#4387) 2024-07-20 08:27:14 +00:00
Micha de Vries
70c682987c
Allow generating ulid and uuid based on a timestamp (#4384) 2024-07-19 11:11:55 +00:00
Emmanuel Keller
c471dc0317
Remove unnecessary cloning of DefineStatementAnalyzer (#4379) 2024-07-19 10:10:09 +00:00
Mees Delzenne
209c145ad0
Remove flume (#4367) 2024-07-19 10:09:54 +00:00
Emmanuel Keller
968b1714dc
Cleanup Fetch resolution (#4312)
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
2024-07-18 11:27:35 +00:00
유정인
6a5dca9214
resolved a TODO: map_err to inspect error (#4271)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-07-18 10:04:12 +00:00
유정인
febca6464a
Refactored: extracted some duplicated code for storing interfaces to ... (#4272)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-07-18 09:14:01 +00:00
JP
a5a3545052
Fix for enum Entry by importing it to sql/mod.rs (#4375)
Co-authored-by: JP <jpmateo@JPMAC.local>
2024-07-18 08:27:38 +00:00
Micha de Vries
c0c99d33b7
Allow unsetting ns/db on rpc (#4373) 2024-07-18 07:07:57 +00:00
Tobie Morgan Hitchcock
bfc474e4d8
Refactor transaction, caching, and key-value store interfaces (#4257)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-07-17 22:44:05 +00:00
Gerard Guillemas Martos
a81aef0e93
Properly revision RecordAccess structure (#4361) 2024-07-15 11:03:07 +00:00
Gerard Guillemas Martos
e281a4e41e
Allow defining JWT access at the root level (#4348) 2024-07-15 10:59:33 +00:00
Mees Delzenne
fc154142fa
Update reblessive (#4352) 2024-07-12 14:40:30 +00:00
Mees Delzenne
a7c4fa5d14
Fix a bug in floating point parsing. (#4337) 2024-07-11 19:36:51 +00:00
Gerard Guillemas Martos
bc665120ee
Port #4335 to 2.0.0-alpha (#4340) 2024-07-11 19:35:30 +00:00
Przemyslaw Hugh Kaznowski
78e8777ff6
4258 bug panic on live select as non root user (#4330) 2024-07-09 10:08:06 +00:00
Vignesh
1baf7848db
Fixes parameter after fetch (#4086)
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-07-05 14:19:53 +00:00
Mees Delzenne
5706c9b368
Fix clippy tests, eliminate globals, remove unused function return variant. (#4303) 2024-07-05 09:34:43 +00:00
Mees Delzenne
07a88383fa
Minor lib improvements (#4261) 2024-07-05 09:19:04 +00:00
Gerard Guillemas Martos
a701230e9d
Fix peeking in parse_uuid (#4304) 2024-07-04 15:56:37 +00:00
Micha de Vries
12ddb94508
Improve RETURN logic (#4298)
Co-authored-by: Mees Delzenne <DelSkayn@users.noreply.github.com>
2024-07-04 15:05:47 +00:00
Farhan
a926525a83
Update surrealkv version to 0.3.0 (#4301) 2024-07-04 13:51:20 +00:00
Micha de Vries
8fdc930098
Fix Datastore.compute() authentication check (#4288)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-07-02 20:16:08 +00:00
Mees Delzenne
dbfd09fa69
Fix panic in the parser (#4287) 2024-07-02 13:41:08 +00:00
Mees Delzenne
780348b18f
Some small parser bug fixes. (#4282) 2024-07-02 11:22:55 +00:00
Micha de Vries
735994549a
Ident should not be escaped for InfoStructure impl (#4280) 2024-07-02 07:39:11 +00:00
Micha de Vries
01a05aea90
Implement AUTHENTICATE clause on RECORD access (#4161)
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-07-01 10:37:50 +00:00
Micha de Vries
7cbb0d4b0d
Geometry point values should be sent as floats in CBOR (#4266) 2024-06-28 14:59:42 +00:00
Micha de Vries
b3b19fd7da
Fix ELSE IF pretty formatting (#4267) 2024-06-28 10:15:03 +00:00
Tobie Morgan Hitchcock
af80c1ccce
Improve structured output (#4217)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
2024-06-25 07:41:06 +00:00
Anthony Rubick
ebc365d4d3
export sql::filter::Filter type in surrealdb-core (#4156)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-06-21 22:40:55 +00:00
Mees Delzenne
4148aef961
Add missing datetime prefix. (#4244) 2024-06-21 21:32:41 +00:00
Farhan
a82bb76aba
chore: bump surrealkv version to 0.2.0 (#4243) 2024-06-21 21:30:35 +00:00
Mees Delzenne
c60c365505
Fix a bug in the parser where 'ns' would not be properly parsed as an alias for 'NAMESPACE' (#4242) 2024-06-21 14:57:40 +00:00
Gerard Guillemas Martos
7b06e8b09a
Fix display formats for access methods (#4220) 2024-06-19 11:27:59 +00:00
Gerard Guillemas Martos
24c8b06c93
Fix: Correctly implement none for Capabilities (#4218) 2024-06-18 18:49:12 +00:00
Emmanuel Keller
3321c64df7
Uses Config::tick_interval (#4193) 2024-06-14 09:41:01 +00:00
Mees Delzenne
17ea0d881e
Implement missing modulo operator in new parser (#4182) 2024-06-13 11:23:24 +00:00
Zeyad Deeb
1530f9107e
feat: enable fdb transaction timeout customization (#4166)
Co-authored-by: Zeyad Deeb <zeyad.deeb@saks.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-06-13 10:22:32 +00:00
David Bottiau
fa66779e43
fix: check args for array::clump (#4167) 2024-06-13 06:42:15 +00:00
Mees Delzenne
3539eac25d
Restructure the parser around the concept of token gluing. (#4081) 2024-06-12 13:52:08 +00:00
Mees Delzenne
2184e80f45
Refactor function target and net target parsing and matching. (#4150) 2024-06-12 10:00:51 +00:00
Tobie Morgan Hitchcock
e1123ae6d6
Remove SpeeDB storage engine (#4171) 2024-06-12 09:40:48 +00:00
David Bottiau
9ffe94a02f
Add html functions (#4155)
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-06-12 09:18:00 +00:00
Tobie Morgan Hitchcock
112df064fd
Add UPSERT statement (#4163) 2024-06-12 09:15:09 +00:00
Gerard Guillemas Martos
d9ae887d50
Resolve panics when a NS or a DB are not configured (#4157)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-06-11 09:34:21 +00:00
Emmanuel Keller
2913917284
[Feat] aligns DEFINE resource creation (already exists) (#4148) 2024-06-07 16:24:55 +00:00
Mees Delzenne
2201b6d26d
Fix panic and infinite loop in parser (#4149) 2024-06-07 10:35:49 +00:00
Emmanuel Keller
7253c01190
[Bug fix] KNN brute force is not working anymore when an index exists (#4143) 2024-06-06 15:40:38 +00:00
Emmanuel Keller
39c1b333de
[Bug fix] Redefining HNSW index error (#4142) 2024-06-06 13:15:53 +00:00
David Bottiau
57b488f7b2
fix: fix Polygon serialization (#4127)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-06-06 11:37:14 +00:00
Emmanuel Keller
9c196fa154
[Feat] Implements a few math functions (#4132) 2024-06-05 15:21:49 +00:00
Gerard Guillemas Martos
20e07a4f79
Improve definition of different durations for authentication (#4119) 2024-06-05 12:36:41 +00:00
Micha de Vries
bf218d9363
Batched export (#4131)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-06-04 15:04:07 +00:00
Emmanuel Keller
e9987f66de
[Bug Fix] Fixes behaviour on non-truthy condition on group foreign table (#4117) 2024-06-03 09:35:13 +00:00
Gerard Guillemas Martos
d2821461b7
Allow defining a maximum session duration on DEFINE USER (#4116) 2024-05-31 07:40:27 +00:00
Obei Sideg
876f281be5
Add string functions for IP (#4111)
Signed-off-by: Obei Sideg <obei.sideg@gmail.com>
2024-05-30 20:15:08 +00:00
Micha de Vries
f6fb0527f3
Constructing an empty Thing should error (#4110) 2024-05-29 12:23:54 +00:00
Emmanuel Keller
f79a946cbe
[Bug fix] Iterator not found on unique indexes with == (#4108) 2024-05-28 15:30:24 +00:00
Gerard Guillemas Martos
9962c56961
Redact secrets from access statements in INFO (#4100) 2024-05-28 15:29:11 +00:00
Micha de Vries
e98a56958b
.generate() should not format table name (#4102) 2024-05-28 13:01:25 +00:00
Micha de Vries
5df3d2d190
INSERT RELATION (#4057)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-05-28 12:37:16 +00:00
Emmanuel Keller
a9e075463d
Move Transaction to Context (#4096) 2024-05-28 10:43:45 +00:00
LivingLimes
2b223d45ea
4065: Use url crate port_or_known_default to allow parsing default ports (#4087) 2024-05-28 10:05:48 +00:00
Gerard Guillemas Martos
bf702b0d67
Require explicit authentication level (#4089) 2024-05-27 08:15:15 +00:00
Emmanuel Keller
3ccadb0740
[Bug fix] Index creation schemafull checks (#4091) 2024-05-24 18:09:10 +00:00
Emmanuel Keller
bbab9fbee4
[CI] Add sdk build test (#4092) 2024-05-24 17:56:14 +00:00
Emmanuel Keller
7495611bc4
[Feat] KNN filtering with limit and KNN distance function (#4036) 2024-05-24 13:45:21 +00:00
Emmanuel Keller
23653e5fce
[Feat] Add TEMPFILES clause to the SELECT statement (#4084) 2024-05-23 13:04:20 +00:00
Gerard Guillemas Martos
e38b891e62
Consolidate authentication methods (#3988)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-05-22 13:57:25 +00:00
Emmanuel Keller
e37a6fb18b
Make temporary table active only if the temporary directory is set (#4079) 2024-05-22 10:05:32 +00:00
LivingLimes
140e70936d
4029: Add debug flag for delr page empty trace (#4068) 2024-05-21 16:06:19 +00:00
Tobie Morgan Hitchcock
2219388802
Prevent subqueries from being executed multiple times (#4051) 2024-05-16 15:51:09 +00:00
Mees Delzenne
8077c15f41
Fix exponent numbers causing record ids to fail (#4049) 2024-05-16 14:13:34 +00:00
Micha de Vries
47054b2891
Indexes should be populated on import (#4047) 2024-05-15 13:29:40 +00:00
Tobie Morgan Hitchcock
8dfdf3dd88
Ensure UPDATE table:id MERGE {} works correctly (#4040)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-05-15 10:45:53 +00:00
Mees Delzenne
75f48af276
Remove nom, add recursion limits with arrays. (#3975)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-05-15 09:12:06 +00:00
David Bottiau
97ce910832
Add array::shuffle function (#3993) 2024-05-15 08:56:46 +00:00
Emmanuel Keller
51aea4ff8f
Removes old alternative syntax for geometry and record (#4034) 2024-05-14 09:23:07 +00:00
Emmanuel Keller
6277aab0e1
Query planner should evaluate non boolean expressions (#4022) 2024-05-14 08:58:06 +00:00
Przemyslaw Hugh Kaznowski
63a7caf40e
Add original value to Del in change feeds (#3969) 2024-05-13 17:07:39 +00:00
Emmanuel Keller
8890053176
Fixes math:min in foreign table (#4017) 2024-05-10 12:42:40 +00:00
Rushmore Mushambi
7776fa476d
Disable another flaky MTree test (#4016) 2024-05-10 12:37:36 +00:00
Emmanuel Keller
fcaff735e6
Fixes 3990 (#4012) 2024-05-10 10:46:10 +00:00
Rushmore Mushambi
24ae06051e
Add a surrealdb-next release train (#3888) 2024-05-10 09:05:32 +00:00
Emmanuel Keller
1d441e1c21
Index & vectors minor fixes (#4009) 2024-05-10 07:12:07 +00:00
Rushmore Mushambi
f607703f7e
Fix FFLAGS import and warnings in tests (#4010) 2024-05-09 21:14:03 +00:00
Przemyslaw Hugh Kaznowski
00752ac02f
Gh 3906 reduce polling rate (#3999) 2024-05-09 13:03:33 +00:00
Emmanuel Keller
009486b2bb
Feature: Initial Hnsw implementation (#3353) 2024-05-08 14:26:41 +00:00
Mees Delzenne
061ad8c712
Update rquickjs dependency (#3942) 2024-05-08 11:00:54 +00:00
Emmanuel Keller
b9f02d146d
TreeCache is currently inefficient on writes (#3954) 2024-04-30 18:09:54 +00:00
Mees Delzenne
a791f742b4
Flexible record id's (#3937) 2024-04-29 12:13:41 +00:00
Przemyslaw Hugh Kaznowski
22aec455b5
Invert CF diffs to derive original (#3934)
Co-authored-by: Emmanuel Keller <keller.emmanuel@gmail.com>
2024-04-29 09:37:21 +00:00
Przemyslaw Hugh Kaznowski
6783f5ee11
Store evaluated live query params (#3946) 2024-04-26 09:09:33 +00:00
Mees Delzenne
8ae2908d6e
Fix release build (#3943) 2024-04-25 14:53:21 +00:00
cospectrum
67ff1ea4ca
Refactor core/idx/ft (#3932)
Co-authored-by: Emmanuel Keller <emmanuel.keller@surrealdb.com>
2024-04-25 14:47:38 +00:00
Farhan
d1f43e52f0
Upgrade skv to 0.1.5 (#3938) 2024-04-25 08:06:05 +00:00
Emmanuel Keller
8172753ac4
Feat: Introduce Rebuild command (#3933) 2024-04-24 13:30:58 +00:00
Przemyslaw Hugh Kaznowski
8f6af53de6
Remaining LQ v2 fixes (#3925) 2024-04-23 10:00:23 +00:00
Przemyslaw Hugh Kaznowski
a45fd5c197
Move Live Query V2 code to separate location (#3911) 2024-04-22 11:22:00 +00:00
Mees Delzenne
02faf73fef
Add a defer async macro for testing (#3908) 2024-04-19 18:33:23 +00:00
Raphael Darley
111f46581f
add more info to info for scope (#3913) 2024-04-18 20:35:38 +01:00