Skip to content

Commit

Permalink
Release 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Aug 16, 2024
1 parent eb052dc commit e4b196c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

**IMPORTANT NOTE**: Make sure to see the [Upgrading Versions](guides/howtos/Upgrading Versions.md) guide in the [HexDocs documentation](https://hexdocs.pm/ecto_watch) if you're having an issue after upgrading.

## [0.10.0] - 2023-08-16

### Added

- Add `EctoWatch.details/1` function to get details about a watcher (#17 / thanks @frerich)

## [0.9.11] - 2023-08-12

### Fixed
Expand Down
10 changes: 9 additions & 1 deletion lib/ecto_watch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,18 @@ defmodule EctoWatch do
Returns details about a watcher for reflection purposes
For example if you need to know what the function/triggers are in the database.
Examples:
iex> EctoWatch.subscribe({Comment, :updated})
Or for a label:
iex> EctoWatch.subscribe(:comment_updated_custom)
"""
@spec details(watcher_identifier()) :: %{
repo_mod: module(),
schema_definition: %EctoWatch.Options.WatcherOptions.SchemaDefinition{
schema_definition: %{
schema_prefix: binary(),
table_name: binary(),
primary_key: binary(),
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule EctoWatch.MixProject do
def project do
[
app: :ecto_watch,
version: "0.9.11",
version: "0.10.0",
elixir: "~> 1.10",
description:
"EctoWatch allows you to easily get Phoenix.PubSub notifications directly from postgresql.",
Expand Down

0 comments on commit e4b196c

Please sign in to comment.