evadne / etso

Ecto 3 adapter allowing use of Ecto schemas held in ETS tables
https://hexdocs.pm/etso
Apache License 2.0
377 stars 36 forks source link

Support JSON extract path expression #21

Closed heywhy closed 2 years ago

heywhy commented 2 years ago

Previously, queries that check against JSON columns couldn't be used alongside this adapter. With the changes in this PR, we can now do this. see an example below:

from(e in Model.Employee)
|> where([e], e.metadata["twitter"] == "@andrew_fuller")
|> Repo.one!()

Alongside these changes is a contribution from @evadne to support the delete_all function on the adapter.

evadne commented 2 years ago

Merge approved