Ecto v2.0.2 Ecto.Adapter.Structure behaviour
Specifies the adapter structure API.
Summary
Callbacks
Dumps the given structure.
The path will be looked in the config
under :dump_path or
default to the structure path inside default
.
Returns :ok
if it was loaded successfully, an error tuple otherwise.
Examples
structure_dump("priv/repo", username: "postgres",
database: "ecto_test",
hostname: "localhost")
Loads the given structure.
The path will be looked in the config
under :dump_path or
default to the structure path inside default
.
Returns :ok
if it was loaded successfully, an error tuple otherwise.
Examples
structure_load("priv/repo", username: "postgres",
database: "ecto_test",
hostname: "localhost")