You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
this is a stub, am trying to work out how to go from a fully designed database, say an ER or other visualization of a complex database into ecto and then into Phoenix
am thinking that maybe a Phoenix.Gen.HTML could be modified to have a switch like "--use-schema-db=dbfile.sql" instead of the usual "Post posts title body"
and that there would be a conditional in the phoenix.gen.model or phoenix.gen.html to call this file instead
apologies if my terminology is poor, am new to Elixir / Phoenix
Hi there,
When I start this project I was thinking that will be merged into ecto, here's the pull request: elixir-ecto/ecto#1722
Basically you need to add this projects into you mix.exs deps, run mix deps.get and then you can ecto.dump.schema. Sometime you will need to edit generated files because sometime you can have indexes, other primary keys etc.
If you have better ideas pleasse open a pull request and I will be happy to discuss or implement new features. 👍 😄
hi there
this is a stub, am trying to work out how to go from a fully designed database, say an ER or other visualization of a complex database into ecto and then into Phoenix
parkerl/fishing_spot#2
looks like this mix task generates the models for ecto
https://github.com/alexandrubagu/ecto_generator/blob/master/lib/mix/tasks/ecto.dump.schema.ex
but what about Phoenix integration?
I assume the answer would be to fork this repo and merge it with a Phoenix generator for HTML or ?
https://github.com/phoenixframework/phoenix/blob/master/lib/mix/tasks/phoenix.gen.html.ex
leaving this as an open question for myself and others that my to come to this same issue
The text was updated successfully, but these errors were encountered: