Skip to content

v0.15.1: support custom filters when retrieving messages (2020-07-28)

Compare
Choose a tag to compare
@mpareja mpareja released this 28 Jul 16:00
· 34 commits to master since this release

Highlights

  • message-store: postgres: support custom filtering of messages retrieved via get/getCategory/getStream.
    • 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 and get_category_messages.
    • WARNING: great care must be taken as the condition option could be used as a SQL Injection attack vector.
    • NOTE: Message DB requires the message_store.sql_condition setting be configured to on. Using this feature without activating the configuration option will result in an error.
    • Thanks go out to sid-360 for contributing custom filtering!

Commits

  • (007239f) package: upgrade pg@8.3.0, uuid@8.3.0
  • (44f8074) message-store: no need to grow examplePutCategory API to track stream names
  • (a808809) Merge pull request #4 from sid-360/postgres-get-add-sql-condition
  • (4acd378) message-store: postgres: update getCategory
  • (6251830) message-store: postgres: update examplePutCategory
  • (cd4cf39) message-store: postgres: rename test description
  • (9e939d7) message-store: postgres: update getStream