commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.06k stars 146 forks source link

module EventStore.PostgresTypes is not available #153

Closed mwillema closed 5 years ago

mwillema commented 5 years ago

According to the Getting Started guide we should add this line to config.exs when we want to use the jsonb datatype:

types: EventStore.PostgresTypes

However this results in a module not available error. Without the afford mentioned line it seems to work.

slashdotdash commented 5 years ago

You need to include the Jason library in mix.exs to enable the Postgrex types with JSON support.

defp deps do
  [{:jason, "~> 1.1"}]
end
mwillema commented 5 years ago

Ok thanks for the reply :-) IMO this should probably be mentioned in the documentation. I can do it if you want.

slashdotdash commented 5 years ago

Yes, it would be useful to include in the docs. A pull request would be gladly accepted.