joeljuca / swiss_schema

A Swiss Army knife for your Ecto schemas
https://hex.pm/packages/swiss_schema
Apache License 2.0
27 stars 3 forks source link

Replicate the Ecto.Repo documentation #2

Closed joeljuca closed 11 months ago

joeljuca commented 1 year ago

Most functions that SwissSchema defines in Ecto schemas are very similar to the equivalent function in Ecto.Repo. So, I believe the documentation must be as close as possible.

We should also add some clear notices stating functions that have different shapes or return types, etc. (see #1).

SwissSchema functions

joeljuca commented 11 months ago

After struggling to replicate Ecto.Repo docs in SwissSchema, I don't believe it's reasonable to keep them paired anymore. The reason? Well, Ecto docs are really big, and the effort to keep them in sync will be much bigger than what I'm able to do. It's not gonna happen.

What I'll be doing is to keep docs very simple, and point to Ecto's respective callbacks and/or functions. Good enough to start with, and definitely better than no docs at all.