Crate ergol_cli[−][src]
Modules
db | This module contains all the functions to help deal with the database. |
diff | This module contains everything needed to compute diffs between databases. |
Functions
current_diff | Returns the migration diff between last save state and current state. |
delete | Delete the whole database. |
find_cargo_toml | Find cargo toml. |
find_db_url | Tries to find the database URL in Rocket.toml or Ergol.toml. |
last_saved_state | Finds the last saved db state. |
migrate | Runs the ergol migrations. |
order | Tries to sort the tables in order to avoid problems with dependencies. |
reset | Resets the database to the current state. |
save | Saves the current state in a new migration. |
state_from_dir | Returns the db state from a directory. |