mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
fix: swap to justfile
This commit is contained in:
parent
7671ab11f1
commit
40215f53e9
14 changed files with 186 additions and 175 deletions
|
@ -1,16 +1,16 @@
|
|||
use anyhow::{Error, Ok, Result};
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
use criterion::{Criterion, criterion_group, criterion_main};
|
||||
use pprof::criterion::{Output, PProfProfiler};
|
||||
use std::{env, time::Duration};
|
||||
use surrealdb::{engine::local::Db, Surreal};
|
||||
use surrealdb::{Surreal, engine::local::Db};
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
use init_reader::File_Format;
|
||||
use wikidata_to_surrealdb::utils::*;
|
||||
|
||||
async fn inti_db() -> Result<Surreal<Db>, Error> {
|
||||
env::set_var("WIKIDATA_LANG", "en");
|
||||
env::set_var("OVERWRITE_DB", "true");
|
||||
unsafe { env::set_var("WIKIDATA_LANG", "en") };
|
||||
unsafe { env::set_var("OVERWRITE_DB", "true") };
|
||||
|
||||
let db = init_db::create_db_mem().await?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue