mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
fix: crane
This commit is contained in:
parent
53e3ffe0dd
commit
6dcb9fd043
9 changed files with 166 additions and 148 deletions
|
@ -39,7 +39,7 @@ async fn main() -> Result<(), Error> {
|
|||
None::<Surreal<Client>>,
|
||||
reader,
|
||||
Some(pb.clone()),
|
||||
500,
|
||||
1_000,
|
||||
1_000,
|
||||
)
|
||||
.await?;
|
||||
|
|
|
@ -241,6 +241,8 @@ impl CreateVersion {
|
|||
|
||||
let file_path = format!("data/temp/{}.surql", file_name);
|
||||
|
||||
tokio::fs::create_dir_all("data/temp").await?;
|
||||
|
||||
db_mem.export(&file_path).await?;
|
||||
db.import(&file_path).await?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue