db_restore
Restores a previous output of db_dump.
This function takes in the parameter hash
, which is a hash table
with the keys as the table names, and it's values are arrays of
records.
See #db_dump for an example of the hash that #db_restore expects.
Example
# Load a previously saved copy of the hash, as spitted out
# by db_dump.
yaml_data = YAML::load_file 'backup.yml'
# Load it.
Aura.db_restore(yaml_data)