Skip to content

add mix task to generate sql dumps of tenant templates#40

Open
Dania02525 wants to merge 1 commit intomasterfrom
create_and_dump_tenant_templates
Open

add mix task to generate sql dumps of tenant templates#40
Dania02525 wants to merge 1 commit intomasterfrom
create_and_dump_tenant_templates

Conversation

@Dania02525
Copy link
Copy Markdown
Owner

Addresses issue #32

Needing work:

  • make the dump more generic- when run can it be appended with set_search_path or USE database_name
  • I don't think this will work async, since it uses searchpath

run_with_cmd("mysqldump", config, ["--no-data",
"--routines",
"--protocol=tcp",
"--databases", build_prefix("template")])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could get away with using ~w() here.

["--user", opts[:username]|args]
true ->
args
end
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like these should be thrown in private methods. It was a bit hard for me to reason about the purpose of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants