I have 200 tables with MySQL Database. I interested to rebuild my application with elixir and phoenix, but I couldn’t find any tools to generate my schema. I have tried to use ecto.load and ecto.dump but it is not generated the schema, even thought I can work with the query.
I want to use schema, if anyone can recommend any tools please.
23:02:11.699 [debug] QUERY OK db=15.0ms
SELECT COLUMN_NAME, DATA_TYPE, CASE WHEN `COLUMN_KEY` = 'PRI' THEN '1' ELSE NULL END AS primary_key FROM information_schema.columns WHERE table_name= 'act_status' and table_schema='worknhol_db' []
** (MatchError) no match of right hand side value: {:error, :enoent}
lib/mix/tasks/ecto.dump.schema.ex:194: Mix.Tasks.Ecto.Dump.Schema.write_model/2
(elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:737: Enum.each/2
(elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:737: Enum.each/2
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:80: Mix.CLI.run_task/2
(elixir) lib/code.ex:677: Code.require_file/2