use couchdb_orm::client::couchdb::actions::db::{{ seed::{{ seed_db }}, backup::{{ backup_db }} }}; use couchdb_orm::awc::Client; use crate::schemas::{}::{}::*; // Here you can implement the data to be injected into the // database. pub fn get_seed() -> Vec {{ vec![] }} pub async fn execute_seed(client: &Client, host: &str) -> Result> {{ seed_db::(client, "{}", get_seed(), host).await }} pub async fn execute_restore(client: &Client, data: couchdb_orm::serde_json::Value, host: &str) -> Result> {{ let t_data: Vec = couchdb_orm::serde_json::from_value(data).unwrap(); seed_db::(client, "{}", t_data, host).await }} pub async fn execute_backup(client: &Client, seed_name: &str, host: &str) -> Result> {{ backup_db::(client, "{}", seed_name, host).await }}