Commit graph

463 commits

Author SHA1 Message Date
Raphael Darley
cd653bdf7e
refactor rpc code (#3790)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-04-17 18:56:08 +00:00
Raphael Darley
4c8c9f6c8a
Info structure refactor (#3886)
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-04-17 15:27:55 +01:00
Micha de Vries
1007a30ea4
CBOR convert no unreachables (#3883) 2024-04-16 17:13:47 +00:00
Raphael Darley
2f0f8dcc93
fix cbor http headers (#3866) 2024-04-12 20:58:47 +00:00
Rushmore Mushambi
e842515882
Drop the old parser (#3814) 2024-04-06 17:33:36 +00:00
Rushmore Mushambi
9f97f0bc48
Stabilise and use parser2 for parsing (#3801)
Co-authored-by: Mees Delzenne <mees.delzenne@gmail.com>
Co-authored-by: Gerard Guillemas Martos <gguillemas@users.noreply.github.com>
2024-04-05 16:05:22 +00:00
David Bottiau
c7c93108c3
Reduce byte size of datetime and uuid types using cbor format (#3763)
Co-authored-by: David Bottiau <B516QT@login.axa>
Co-authored-by: Micha de Vries <micha@devrie.sh>
2024-04-03 14:22:21 +00:00
David Bottiau
32a7a9bce4
Handle multiple file patterns in validate command (#3615)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-04-03 12:11:03 +00:00
Tobie Morgan Hitchcock
b03aeca08c
Cleanup a few things in the code (#3793)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-04-03 09:54:12 +00:00
Rushmore Mushambi
2fbb4f4617
Add #[non_exhaustive] to core structs and enums (#3781) 2024-04-02 20:12:08 +00:00
Emmanuel Keller
c82bbc0820
Feature: On disk temporary table (#3749)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-03-28 16:29:55 +00:00
Maxwell Flitton
e201366602
updating surrealml-core and adding checking for version and name (#3773) 2024-03-28 13:57:26 +00:00
Emmanuel Keller
ea8810d905
Replaces option_env by std::env::var (#3777) 2024-03-27 18:19:54 +00:00
Lorenzo Verardo
4a590fe86f
Bugfix: check if update version is already installed (#3756) 2024-03-26 08:29:19 +00:00
Gerard Guillemas Martos
0985b1e18d
Fix: Allow legacy headers in CORS (#3747)
Co-authored-by: Gerard Guillemas Martos <gerard@DESKTOP-6S0AS7R>
2024-03-22 20:50:01 +00:00
Micha de Vries
00bc9db496
Optimize CBOR decoding (#3723) 2024-03-19 16:00:30 +00:00
Raphael Darley
da483716c5
Add post rpc (#3697) 2024-03-19 15:17:38 +00:00
Rushmore Mushambi
0fc410dec2
Make sql2 mandatory in the binary (#3722) 2024-03-19 12:34:38 +00:00
Rushmore Mushambi
0a466cd39d
Fix API warnings (#3715) 2024-03-18 17:18:22 +00:00
Przemyslaw Hugh Kaznowski
47a1589018
Refactor ds tasks to single part of codebase (#3655) 2024-03-18 12:30:31 +00:00
Raphael Darley
2e27000c8e
remove unreachable in msgpack (#3691) 2024-03-13 12:37:03 +00:00
Przemyslaw Hugh Kaznowski
b62011bfec
Improve debug experience on debug builds (#3672) 2024-03-12 09:27:28 +00:00
Mees Delzenne
87da9c0b01
Fix warnings (#3634) 2024-03-08 10:58:07 +00:00
Rushmore Mushambi
08fa85b3ab
Temporarily disable the backup command (#3635) 2024-03-05 18:38:03 +00:00
Micha de Vries
e5c63234ca
Support tables + geometries in CBOR (#3604)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-03-05 15:19:44 +00:00
Przemyslaw Hugh Kaznowski
4471433a78
Add version check for web with short timeout (#3599) 2024-03-04 11:12:59 +00:00
Przemyslaw Hugh Kaznowski
e06cd111cf
Add Engine Config for configuring how many live queries can be created per transaction (#3559) 2024-03-01 17:12:53 +00:00
Tobie Morgan Hitchcock
fba5aa875d
Add compile-time feature for profiling (#3370)
Co-authored-by: Przemyslaw Hugh Kaznowski <hugh@surrealdb.com>
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-02-28 15:46:00 +00:00
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
Rushmore Mushambi
429ca31faa
Fix the SurrealKV scheme in the CLI (#3551) 2024-02-20 15:34:07 +00:00
Rushmore Mushambi
4cccac46de
Make surreal upgrade version parsing more robust (#3539) 2024-02-19 14:08:13 +00:00
Rushmore Mushambi
d7a43dc46c
Simplify CLI output and eliminate concurrency bugs (#3531) 2024-02-16 17:33:13 +00:00
Mees Delzenne
6782b8000a
Bugfix: Fix cli occasionally not printing results (#3509) 2024-02-14 17:37:27 +00:00
Przemyslaw Hugh Kaznowski
19a04c86ba
Add context to live query notifications (#3461) 2024-02-12 11:54:38 +00:00
Rushmore Mushambi
d55d1a3b6e
Implement revision types for client/server communication (#3474) 2024-02-12 11:52:36 +00:00
Rushmore Mushambi
454509e4d1
Update dependencies and add ml2 feature (#3385) 2024-02-09 19:31:16 +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
Pratim
ae66978e44
Feature: Add short alias v for surreal version command (#3334)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-01-20 21:53:59 +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
Micha de Vries
0431d38602
Update CBOR tags (#3312) 2024-01-15 11:36: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
Tobie Morgan Hitchcock
f7e6e028a2
Support CBOR and MessagePack binary serialisation in WebSocket (#3251)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-01-09 21:50:27 +00:00
Tobie Morgan Hitchcock
a35fc0d04d
Improve WebSocket protocol implementation (#3291) 2024-01-09 15:27:03 +00:00
Micha de Vries
d6016ae2be
Show execution time in CLI (#3047)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2024-01-06 20:05:58 +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
Rushmore Mushambi
8a4e2a347e
Fix lints for Rust v1.75.0 (#3246) 2024-01-02 23:11:45 +00:00
Rushmore Mushambi
23d67305f5
Fix deserialisation and HTTP engine regressions (#3180) 2023-12-20 10:31:19 +00:00
Tobie Morgan Hitchcock
2db5968d0a
Building the server without the start command doesn’t make sense (#3170) 2023-12-19 08:56:24 +00:00
Tobie Morgan Hitchcock
1b9cbcacaf
Ensure compression is only enabled when response is a certain size (#3168) 2023-12-19 08:53:42 +00:00
Rushmore Mushambi
378df76cb0
Add a --beta flag to make installing the latest beta easier (#3145) 2023-12-13 11:21:15 +00:00
Maxwell Flitton
2ae8416791
Add support for ML model storage and execution (#3015) 2023-12-12 13:51:43 +00:00
Salvador Girones Gil
8e401a90c4
[mem] Use mimalloc instead of snmalloc (#3068) 2023-12-05 10:10:52 +00:00
Tobie Morgan Hitchcock
08ec62cbe1
Fix memory leak (#3066) 2023-12-05 09:28:29 +00:00
Tobie Morgan Hitchcock
664f9d4fbe
Use specific memory allocators depending on OS (#3061) 2023-12-04 12:37:32 +00: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
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
Rushmore Mushambi
3baf1c6ea9
Add Query::with_stats to return query statistics along with the results (#3019) 2023-11-27 19:13:52 +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
Gerard Guillemas Martos
2584970b1d
Update third-party dependencies (#3005) 2023-11-20 15:50:37 +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
Emmanuel Keller
ca2c1560da
Repetitive expressions and idioms are not anymore re-evaluated (#2935) 2023-11-08 10:06:52 +00:00
Emmanuel Keller
f8b559ace1
Introduce http-compression feature flag (#2916) 2023-11-01 13:58:20 +00:00
Micha de Vries
49742ca3db
Add surreal sql welcome message (#2897) 2023-10-26 15:25:12 +00:00
Micha de Vries
144e7de8ff
CLI: Split results by comment (#2895)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-10-26 14:06:41 +00:00
Micha de Vries
05907db1ea
Fix #2513 - Query results should be consistent and representative (#2887) 2023-10-26 10:05:44 +00:00
Emmanuel Keller
bc2f7fdafa
Feat: enable compression on the HTTP connector (#2867) 2023-10-23 13:37:42 +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
Salvador Girones Gil
920cdfc71a
[otel] Fix memory leak caused by OTEL callbacks (#2771) 2023-10-02 12:27:18 +00:00
Jan S
74ad693709
Fix typos (#2764) 2023-09-28 09:17:29 +00:00
Raphael Darley
db5fb6df63
Switch transaction to enum from bool (#2743) 2023-09-26 13:02:53 +00:00
Tobie Morgan Hitchcock
248829cf8a
Ensure live queries are killed correctly (#2676) 2023-09-12 10:38:28 +01:00
Tobie Morgan Hitchcock
28368d83c9
Add live queries to INFO FOR TB statement (#2673) 2023-09-11 20:35:32 +01:00
Tobie Morgan Hitchcock
ebabe9554b
Ensure parameters are computed before being stored on WebSocket (#2654) 2023-09-08 20:10:12 +01:00
Salvador Girones Gil
8ebd1b4a66
[logging] Move HTTP/WS logs to debug (#2650) 2023-09-08 16:48:12 +01:00
Tobie Morgan Hitchcock
abb5ce00db
Ensure incorrect data causes error (#2559) 2023-09-04 18:54:17 +01:00
Salvador Girones Gil
7265136c0a
[security] Allow all functions by default (#2608) 2023-09-04 16:46:57 +01:00
Micha de Vries
e19334f53c
Add X-Forwarded-For Client-IP header (#2600) 2023-09-04 11:10:59 +00:00
Tobie Morgan Hitchcock
8b6af2a562
Ensure transactions are handled properly (#2585) 2023-09-02 22:22:41 +01:00
Tobie Morgan Hitchcock
c07f9c131b
Remove RPC diff and use third argument in RPC patch method (#2565) 2023-09-01 10:38:19 +01:00
Tobie Morgan Hitchcock
efa7a14964
Add diff RPC method to WebSocket API (#2560) 2023-09-01 08:00:32 +01:00
Rushmore Mushambi
742a353a8f
Refactor and improve Surreal::export (#2555) 2023-08-31 19:44:18 +00:00
Tobie Morgan Hitchcock
fc7f5cb0b0
Support variable field projection with type::field() and type::fields() (#2552) 2023-08-31 13:06:10 +01:00
Salvador Girones Gil
b56e13bd05
[capabilities] Enable all capabilities for the sql and import cmds (#2548) 2023-08-30 20:34:46 +00:00
Salvador Girones Gil
bdac1fae72
[security] Introduce "allow-guests". Deny all caps by default (#2547) 2023-08-30 18:01:30 +00:00
Salvador Girones Gil
e2cc94b2ad
[tracing] Fix the WS spans (#2540) 2023-08-29 13:04:53 +01:00
Rushmore Mushambi
6cb12db82b
Make patch return the patched record (#2530) 2023-08-27 19:28:38 +01:00
Tobie Morgan Hitchcock
a31d25d3c5
Support arbitrary number of arrays in array::concat() (#2526) 2023-08-27 11:40:49 +01:00
Salvador Girones Gil
b5b6f6f1d4
[security] Introduce the Datastore capabilities (#2489) 2023-08-23 20:26:31 +01:00
Rushmore Mushambi
9d89fa0d56
Simplify connect parameters (#2488) 2023-08-22 09:23:49 +00:00
Yusuke Kuoka
d52784f953
Fix Ctrl-C to work for node and telemetry (#2476) 2023-08-21 12:35:34 +01:00
Przemyslaw Hugh Kaznowski
ce6cfb7634
GC live queries when client disconnects (#2255) 2023-08-19 10:01:37 +01:00
Rushmore Mushambi
f16ec7f894
Add a Value::Query variant (#2460) 2023-08-18 23:51:56 +01:00
Przemyslaw Hugh Kaznowski
60b6cc6c75
Test for kill ws (#2407)
Co-authored-by: Salvador Girones <salvadorgirones@gmail.com>
2023-08-18 15:21:01 +00:00
Salvador Girones Gil
3b26ad2a44
[rpc] Add WebSocket metrics (#2413) 2023-08-16 13:27:53 +01:00
Yusuke Kuoka
ceb603ee33
Fix CF GC / node::init to actuallly run on start (#2403) 2023-08-11 09:42:08 +00:00
Rushmore Mushambi
61f4580ba8
Switch to std::sync::OnceLock and fix Surreal::clone (#2370) 2023-08-10 06:33:38 +00:00
Przemyslaw Hugh Kaznowski
87705098ab
Change kill id type to value (#2402)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-08-08 17:15:01 +00:00
Przemyslaw Hugh Kaznowski
abbf9819c4
Add tests for Live Queries over web sockets (#2382)
Co-authored-by: Salvador Girones <salvadorgirones@gmail.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-08-04 17:43:23 +00:00
Salvador Girones Gil
e91011cc78
[rpc] Better tracing for WebSockets (#2325) 2023-08-03 14:59:05 +00:00