Commit graph

61 commits

Author SHA1 Message Date
Sergii Glushchenko
c73435a881
Remove global static Datastore (#4377) 2024-07-18 12:11:59 +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
Przemyslaw Hugh Kaznowski
41128094d1
3987 Reduce read lock duration (#4328) 2024-07-09 09:18:59 +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
061ad8c712
Update rquickjs dependency (#3942) 2024-05-08 11:00:54 +00:00
David Bottiau
854e6e6df2
Fix response content-type on /rpc endpoint (#3918)
Co-authored-by: Raphael Darley <raphael@raphaeldarley.com>
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2024-04-19 20:13:51 +01:00
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
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
Rushmore Mushambi
2fbb4f4617
Add #[non_exhaustive] to core structs and enums (#3781) 2024-04-02 20:12:08 +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
Raphael Darley
2e27000c8e
remove unreachable in msgpack (#3691) 2024-03-13 12:37: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
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
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
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
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
23d67305f5
Fix deserialisation and HTTP engine regressions (#3180) 2023-12-20 10:31:19 +00:00
Tobie Morgan Hitchcock
08ec62cbe1
Fix memory leak (#3066) 2023-12-05 09:28:29 +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
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
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
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
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
Salvador Girones Gil
e91011cc78
[rpc] Better tracing for WebSockets (#2325) 2023-08-03 14:59:05 +00:00
Salvador Girones Gil
53702c247a
[metrics] HTTP Layer + move to Axum (#2237) 2023-07-19 14:35:56 +00:00
Rushmore Mushambi
20ee2f1dc6
Remove manual log targets (#2214) 2023-07-04 21:02:10 +00:00
Tobie Morgan Hitchcock
55918b7c0e
Switch to bincode serialization (#2134)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-07-01 20:09:15 +01:00
Tobie Morgan Hitchcock
591634e049
Ensure HTTP REST API responses are simplified when serialized (#1924) 2023-05-05 19:54:49 +01:00
Rushmore Mushambi
c3c6613e7a
Fix simple ID serialisation in the WebSocket protocol (#1900) 2023-05-02 12:17:27 +01:00