You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,23 @@
1
+
## v0.15.1: support custom filters when retrieving messages (2020-07-28)
2
+
3
+
### Highlights
4
+
5
+
- message-store: postgres: support custom filtering of messages retrieved via `get`/`getCategory`/`getStream`.
6
+
-`get`/`getCategory`/`getStream` now accept a SQL fragment via the `condition` option. The SQL fragment is appended to the WHERE clause used to retriving messages via [`get_stream_messages`](http://docs.eventide-project.org/user-guide/message-db/server-functions.html#get-messages-from-a-stream) and [`get_category_messages`](http://docs.eventide-project.org/user-guide/message-db/server-functions.html#get-messages-from-a-category).
7
+
-**WARNING**: great care must be taken as the `condition` option could be used as a [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection) attack vector.
8
+
-**NOTE**: [Message DB](http://docs.eventide-project.org/user-guide/message-db/) requires the [`message_store.sql_condition`](http://docs.eventide-project.org/user-guide/message-db/server-functions.html#filtering-messages-with-a-sql-condition) setting be configured to `on`. Using this feature without activating the configuration option will result in an error.
9
+
- Thanks go out to [sid-360](https://github.com/sid-360) for contributing custom filtering!
- ([`44f8074`](https://github.com/mpareja/gearshaft/commit/44f8074697c25865e990128e48f33a83f39b5a15)) message-store: no need to grow examplePutCategory API to track stream names
15
+
- ([`a808809`](https://github.com/mpareja/gearshaft/commit/a808809b5f6c078219aaaf1801a4c52f19d21bba)) Merge pull request #4 from sid-360/postgres-get-add-sql-condition
0 commit comments