Hi Milan,
Thanks for sharing the detailed explanation — it really helped clarify
your use case and the limitation you’re running into with ecto.dump.
I’ve looked into it, but I think what you’re asking for is actually
outside the scope of my project (ecto_database_first).
My tool is intentionally focused on a database-first approach, where
the database already exists (often designed and maintained by DB
engineers or already well-structured in production/legacy systems),
and the goal is to generate Ecto schemas from that existing state.
Because of that, it doesn’t interact with or extend pg_dump,
structure_dump, or Ecto’s dumping pipeline. It operates at a higher
level through database introspection rather than dump generation.
Your suggestion around extending pg_dump options like --clean and
--if-exists makes sense in the context of Ecto’s dump system, but that
belongs to a different layer of the ecosystem than what this project
is designed for.
That said, if you’re genuinely stuck on something important in your
workflow, feel free to reach out to me directly via email — I’d be
happy to help where I can. I just won’t be able to incorporate this
change into the current project scope.
Thanks again for taking the time to write such a thoughtful message.
Best regards,
Rohaan
> --
> You received this message because you are subscribed to the Google Groups "elixir-ecto" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
elixir-ecto...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/elixir-ecto/e6b3c246-7aaa-4d2a-b242-8718589d2d2cn%40googlegroups.com.