Skip to content

Commit

Permalink
Remove LIVE with DIFF
Browse files Browse the repository at this point in the history
  • Loading branch information
Ce11an committed Aug 18, 2024
1 parent cbbdb15 commit d99db12
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
3 changes: 0 additions & 3 deletions examples/live.surql
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
-- By default, SurrealDB will push the entire record over the websocket when created or updated, and just the record's ID when deleted.
LIVE SELECT * FROM person;

-- When using the DIFF mode, updates will be sent in the form of an array with JSON Patch messages.
LIVE SELECT DIFF FROM person;

-- You can optionally apply filters with the WHERE clause.
LIVE SELECT * FROM person WHERE age > 18;
29 changes: 0 additions & 29 deletions test/corpus/live.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,6 @@ LIVE SELECT * FROM person;
(identifier))))))))
(semi_colon)))

=====================================
Live select using DIFF
=====================================

LIVE SELECT DIFF FROM person;

---

(source_file
(expressions
(expression
(statement
(live_select_statement
(keyword_live)
(select_statement
(select_clause
(keyword_select)
(inclusive_predicate
(predicate
(value
(base_value
(identifier))))))
(from_clause
(keyword_from)
(value
(base_value
(identifier))))))))
(semi_colon)))

=====================================
Live select with a filter
=====================================
Expand Down

0 comments on commit d99db12

Please sign in to comment.