mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
refactor init_db and init_progress_bar
This commit is contained in:
parent
731df97cd2
commit
2ded1d5b1b
8 changed files with 103 additions and 134 deletions
|
@ -11,7 +11,7 @@ async fn inti_db() -> Result<Surreal<Db>, Error> {
|
|||
env::set_var("WIKIDATA_LANG", "en");
|
||||
env::set_var("OVERWRITE_DB", "true");
|
||||
|
||||
let db = create_db_mem().await?;
|
||||
let db = init_db::create_db_mem().await?;
|
||||
|
||||
Ok(db)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue