Mix.Tasks.Ecto.Load

Mix.Tasks.Ecto.Load

Loads the current environment’s database structure for the given repository from a previously dumped structure file.

The repository must be set under :ecto_repos in the current app configuration or given via the -r option.

Example

mix ecto.load

Command line options

  • -r, --repo - the repo to load the structure info into
  • -d, --dump-path - the path of the dump file to load from

Summary

Functions

run(args)

A task needs to implement run which receives a list of command line args

Functions

run(args)

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.

© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/ecto/Mix.Tasks.Ecto.Load.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部