Emmanuel Keller
4e2b2b9e30
SavePoint: Avoid calling get twice on put, putc and delc ( #4731 )
2024-09-12 15:14:28 +00:00
Raphael Darley
bfa8e98753
improve graphql record fetching ( #4682 )
2024-09-12 14:14:14 +00:00
Emmanuel Keller
749a30014f
Fallback to table iterator on ORDER BY indexField DESC ( #4745 )
2024-09-12 13:29:18 +00:00
Mees Delzenne
0444d5e6ce
Implement conversions for bytes and geometries in script functions ( #4743 )
2024-09-12 12:04:36 +00:00
Tobie Morgan Hitchcock
d32110b46d
Add additional chained methods to number values ( #4741 )
2024-09-11 16:23:16 +01:00
Tobie Morgan Hitchcock
472f3624d5
Upgrade surrealcs
( #4744 )
2024-09-11 16:17:07 +01:00
Tobie Morgan Hitchcock
bd031ccbe8
Upgrade surrealcs
( #4736 )
2024-09-10 20:45:39 +01:00
Maxwell Flitton
d317a0033d
Improve startup error handling for SurrealCS connection pool ( #4733 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-10 20:44:04 +01:00
Gerard Guillemas Martos
b7583a653a
Merge commit from fork
...
* fix
* move check into iam
* refactor
* fix typo
* add test
* remove is_computed
* impl validate_computed for array
* range support
* clippy
* tidy
* tidy
* add comments
---------
Co-authored-by: Raphael Darley <raphael.darley@surrealdb.com>
2024-09-10 17:19:45 +02:00
Micha de Vries
714bf9ebc5
Fix importing from 1.x ( #4725 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-10 13:14:01 +00:00
Sergii Glushchenko
516bb977ac
Info for db and table with versioned tables and fields ( #4692 )
2024-09-10 12:59:31 +00:00
Micha de Vries
29af8f573d
Improve literal types ( #4712 )
...
Co-authored-by: Raphael Darley <raphael.darley@surrealdb.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-10 13:50:31 +01:00
Tobie Morgan Hitchcock
ba18cc2d79
Fix bug with timeouts not always being processed ( #4721 )
2024-09-10 13:37:26 +01:00
Emmanuel Keller
30118f445c
Implements SavePoint(s) ( #4707 )
2024-09-10 10:10:46 +00:00
Micha de Vries
6735ea96d8
Nested fields in optional fields should not be required ( #4719 )
2024-09-09 19:04:59 +01:00
Raphael Darley
2eff350c19
improve namespace/database validation for graphql ( #4718 )
2024-09-09 18:59:55 +01:00
Tobie Morgan Hitchcock
9927fc654a
Convert unreachable!()
code to Error::Unreachable
errors in core ( #4673 )
2024-09-09 18:58:17 +01:00
Micha de Vries
b589f7fec1
Improve fix logic, fix graph edges ( #4715 )
2024-09-09 16:02:40 +00:00
Raphael Darley
fcdc37227e
Fix formatting and import for nightly ( #4716 )
2024-09-09 16:22:55 +01:00
Raphael Darley
5da3a642a2
Add fail!()
macro and test ( #4699 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-08 23:39:42 +01:00
Salvador Girones Gil
bb1884d56b
[import] Support SurrealCS on the import command ( #4706 )
2024-09-06 12:45:28 +00:00
Tobie Morgan Hitchcock
66d904215b
Use async commit and one-phase commit where possible in TiKV ( #4701 )
2024-09-05 10:27:21 +01:00
Tobie Morgan Hitchcock
a94d356017
Ensure catch!()
and run!()
macros are consistent ( #4700 )
2024-09-05 10:26:46 +01:00
Raphael Darley
dc06603d5b
Simplify cfg
attributes around codebase ( #4695 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-05 09:35:35 +01:00
Tobie Morgan Hitchcock
06b4f95198
Improve aggregate function argument checks ( #4698 )
2024-09-05 09:10:48 +01:00
Luca Giannini
0294bde560
Refactor migrating away from once cell ( #4614 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-05 09:04:12 +01:00
Anirban Halder
405c96f78d
Added TryFloatDiv trait for MathMean in Aggregate function ( #4390 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-04 22:42:38 +01:00
Maxwell Flitton
0a1a99dc68
Initial commit for SurrealCS ( #4458 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Raphael Darley <raphael.darley@surrealdb.com>
2024-09-04 14:53:37 +01:00
Raphael Darley
7ab4d94e93
bump async graphql version ( #4687 )
2024-09-04 12:29:56 +01:00
Dave MacLeod
4431809711
Add time::is::leap_year() function ( #4671 )
2024-09-03 20:30:59 +01:00
Emmanuel Keller
d148098f5a
Fix 3863 part 1 / 3 ( #4666 )
2024-09-03 13:31:15 +00:00
Tobie Morgan Hitchcock
33aa5da3cc
Add ability to configure JavaScript runtime limits ( #4669 )
2024-09-03 14:19:12 +01:00
Tobie Morgan Hitchcock
6e09684e4c
Make surrealdb.query()
and surrealdb.value()
consistent ( #4675 )
2024-09-03 14:13:37 +01:00
Julian
507dd931f3
Add function returns to info structure ( #4642 )
...
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-09-03 14:02:09 +01:00
Raphael Darley
ff3c3bcc2b
Make sdk create consistent ( #4667 )
2024-09-03 14:01:37 +01:00
Mees Delzenne
b0cde2a40a
Overhaul the parser error type. ( #4652 )
2024-09-03 11:53:16 +00:00
Tobie Morgan Hitchcock
329bb74040
Fix NONE
and NULL
less than or greater than bugs ( #4658 )
2024-09-02 11:03:26 +01:00
Dave MacLeod
99356dcd49
Default to true for WHEN on DEFINE EVENT statement ( #4662 )
2024-09-02 11:03:09 +01:00
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