From 7ea6a96078a40cd9d859aa9ce1d962e5e78793a5 Mon Sep 17 00:00:00 2001 From: Roman Heinrich Date: Sat, 11 Nov 2023 00:17:22 +0100 Subject: [PATCH] Chore: minor edits in readme --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 971e857..1c4dee2 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,16 @@ Surrealix.query(pid, "SELECT * FROM type::table($table);", %{table: "person"}) ```elixir ## Example with live query callbacks -Surrealix.live_query(pid, "LIVE SELECT * FROM user;", fn event, data, config -> +Surrealix.live_query(pid, "LIVE DIFF SELECT * FROM user;", fn event, data, config -> IO.inspect({event, data, config}, label: "callback") end) +## Example with live query with DIFF +Surrealix.live_query(pid, "LIVE SELECT DIFF FROM user;", fn event, data, config -> + IO.inspect({event, data, config}, label: "callback") +end) + + # inspect currently registered live queries Surrealix.all_live_queries(pid) ``` @@ -108,7 +114,6 @@ Code foundation was taken from https://github.com/joojscript/surrealdb_ex. Since - [x] debug modus with verbose logging - [x] integration tests - [ ] handle disconnects gracefully -- [ ] benchmarks ## Support