Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axelson/typed_ecto_schema_repro
https://github.com/axelson/typed_ecto_schema_repro
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/axelson/typed_ecto_schema_repro
- Owner: axelson
- Created: 2024-07-19T20:47:13.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T20:47:23.000Z (6 months ago)
- Last Synced: 2024-11-29T20:31:17.276Z (about 2 months ago)
- Language: Elixir
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a reproduction for the many_to_many compile-time dep issue mentioned in https://github.com/bamorim/typed_ecto_schema/issues/38#issuecomment-2240066353
This project was generated with
```
mix phx.new many
mix phx.gen.schema User users name:string email:string
mix phx.gen.schema Book books name:string
mix phx.gen.schema BookReview book_reviews book_id:integer review:string
```Then in 76b3ab47be4376bc2e1aed6e978b5c0e983d951f I add the `many_to_many` (along with the matching `mix xref --format dot` output)
- In this commit two runtime deps are added (as expected)In 76b3ab47be4376bc2e1aed6e978b5c0e983d951f I add `typed_ecto_schema` and the compile dep on `lib/many/book.ex` becomes a compile-time dep