Commit graph

928 commits

Author SHA1 Message Date
Mees Delzenne
e477dc9133
Fix build by upgrading rquickjs (#2509) 2023-08-24 15:05:28 +01:00
Przemyslaw Hugh Kaznowski
cbf933b319
Adding auth to live queries (#2307) 2023-08-24 15:04:57 +01:00
Tobie Morgan Hitchcock
a6ec9dbd02
Ensure edge in and out fields are not overwritten (#2506) 2023-08-24 09:19:19 +01:00
Tobie Morgan Hitchcock
1a4e310e46
Improve output of THROW errors (#2505) 2023-08-23 23:30:13 +01:00
Salvador Girones Gil
b5b6f6f1d4
[security] Introduce the Datastore capabilities (#2489) 2023-08-23 20:26:31 +01:00
Johnny Hauser
5945146459
Include define and remove statements in subquery #2459 (#2496) 2023-08-23 17:05:50 +01:00
Tobie Morgan Hitchcock
16a4c2c40e
Default to true if a WHEN clause is omitted on DEFINE EVENT statements (#2502) 2023-08-23 17:04:56 +01:00
Tobie Morgan Hitchcock
495f69d618
Ensure comments are output with DEFINE statements (#2500) 2023-08-23 17:04:42 +01:00
Tobie Morgan Hitchcock
b1275ed565
Ensure foreach range is computed before iterating over (#2492) 2023-08-22 17:45:22 +01:00
Tobie Morgan Hitchcock
ac35111833
Improve code blocks, foreach statements, and throw statements (#2490) 2023-08-22 12:26:05 +01:00
Rushmore Mushambi
9d89fa0d56
Simplify connect parameters (#2488) 2023-08-22 09:23:49 +00:00
Tobie Morgan Hitchcock
afdd0b3c85
Improve id field handling in the statement data clause (#2487) 2023-08-21 23:47:35 +01:00
Finn Bear
27cc21876d
Security - Limit parser depth. (#2369) 2023-08-21 22:05:11 +00:00
Mees Delzenne
77c889f356
Minor parser fixes (#2479) 2023-08-21 16:29:50 +01:00
Rushmore Mushambi
74c3551b45
Remove unnecessary impl From<Jwt> for Value (#2483) 2023-08-21 15:09:00 +01:00
Rushmore Mushambi
76478b37cd
impl IntoResource for &Thing (#2482) 2023-08-21 13:48:31 +01:00
Mees Delzenne
76b962eb6e
Lower parsing complexity for binary values and idioms (#2475) 2023-08-21 11:33:57 +01:00
Tobie Morgan Hitchcock
b350f052a7
Ensure ON DUPLICATE KEY UPDATE clause is displayed on INSERT statement (#2474) 2023-08-20 19:16:41 +01:00
Tobie Morgan Hitchcock
c2e695b897
Support whitespace in JavaScript function definition (#2473) 2023-08-20 14:14:53 +01:00
Yusuke Kuoka
3ea3c34f71
Fix random tikv tests after ts_to_vs test to not fail anymore (#2472) 2023-08-20 12:26:19 +01:00
Tobie Morgan Hitchcock
83be65125b
Temporarily ignore kvs::timestamp_to_versionstamp test (#2470) 2023-08-20 09:45:03 +01:00
Tobie Morgan Hitchcock
f01da5f577
Delay Record ID generation when using functions (#2469) 2023-08-20 04:27:20 +01:00
Tobie Morgan Hitchcock
1fd6d991ae
Implement DEFAULT value clause on DEFINE FIELD statements (#2468) 2023-08-20 03:53:50 +01:00
Tobie Morgan Hitchcock
71adbe6f5a
Ensure foreign tables are deleted fully when removed (#2467) 2023-08-20 02:07:15 +01:00
Tobie Morgan Hitchcock
dcc3c4fabb
Ensure records can be created correctly when using INSERT statement (#2466) 2023-08-20 00:34:41 +01:00
Tobie Morgan Hitchcock
e9ef8855cf
Ensure permissions are enforced on edge in and out fields (#2465) 2023-08-19 23:19:16 +01:00
Tobie Morgan Hitchcock
136d8f8eee
Add tests for DEFINE FIELD ... VALUE clauses with references and with futures (#2464) 2023-08-19 20:22:15 +01:00
Przemyslaw Hugh Kaznowski
1dfc58a8da
Fix live queries to check predicates against previous document instead of current (#2452) 2023-08-19 13:31:51 +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
Tobie Morgan Hitchcock
44dabfa9d2
Improve DEFINE and REMOVE statements code (#2455) 2023-08-18 14:21:02 +01:00
Yusuke Kuoka
41c9fd701e
Add ns/db/tb IDs for aliasing (#2441) 2023-08-18 09:00:06 +01:00
Yusuke Kuoka
a242d21d94
feat: Ability to show changes using timestamp (#2408) 2023-08-18 08:17:54 +01:00
Tobie Morgan Hitchcock
b2b51b54b1
Add versioned data storage serialisation (#2433) 2023-08-17 19:03:46 +01:00
Przemyslaw Hugh Kaznowski
983ec1ba63
Add tx commits (#2443) 2023-08-16 18:56:17 +01:00
Przemyslaw Hugh Kaznowski
bba2420503
Resolve assert to unwrap (#2448) 2023-08-16 14:31:39 +01:00
Przemyslaw Hugh Kaznowski
d4b2ba9999
Add a commit to tb.rs (#2436) 2023-08-14 13:27:27 +01:00
Przemyslaw Hugh Kaznowski
150b303da9
Fix cluster init (#2434) 2023-08-14 13:27:03 +01:00
Przemyslaw Hugh Kaznowski
d9eaf0eaa3
Add warning log for dropped uncommitted write transactions (#2425)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
2023-08-12 22:01:27 +00:00
Przemyslaw Hugh Kaznowski
ef75fc2a66
Add test for delete with live query predicates (#2430) 2023-08-11 23:22:53 +00:00
Rushmore Mushambi
78808bb44c
Refactor Lazy::new(|| Surreal::init()) to Lazy::new(Surreal::init) (#2432) 2023-08-11 22:11:24 +00:00
Przemyslaw Hugh Kaznowski
8678377efd
Refactored ds.rs to re-use and close write transaction (#2431) 2023-08-11 19:30:44 +01:00
hchockarprasad
8b1cb5ee1f
Fix merging of empty objects & arrays (#2347) 2023-08-11 15:47:54 +00:00
meppu
1a0116332a
Implement all JSON Patch operations (#2398) 2023-08-10 06:38:46 +00:00
Rushmore Mushambi
61f4580ba8
Switch to std::sync::OnceLock and fix Surreal::clone (#2370) 2023-08-10 06:33:38 +00:00
Raphael Darley
4ae1a0d1a9
Allow more export options (#2375)
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-08-09 12:15:20 +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
Salvador Girones Gil
94f7fc01e7
[cargo] Use the surrealdb-tikv-client published to crates.io (#2416) 2023-08-08 16:41:45 +00:00
Yusuke Kuoka
77d11146e5
Use monotonic versionstamps with TiKV for now (#2411) 2023-08-08 16:07:31 +00:00
Salvador Girones Gil
ab72923fb5
[import] Provide descriptive error messages (#2377) 2023-08-03 14:06:08 +00:00