mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
flat
This commit is contained in:
parent
47e4dd6b8d
commit
623f1f1d89
2 changed files with 29 additions and 4 deletions
|
@ -3,7 +3,6 @@ use anyhow::{Error, Result};
|
|||
use dotenv_codegen::dotenv;
|
||||
use surrealdb::engine::remote::ws::Ws;
|
||||
use surrealdb::opt::auth::Root;
|
||||
use surrealdb::sql::Thing;
|
||||
use surrealdb::Surreal;
|
||||
|
||||
mod utils;
|
||||
|
@ -11,7 +10,7 @@ use utils::*;
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Error> {
|
||||
let data = get_entity("data/wiki.json").await?;
|
||||
let data = get_entity("data/e.json").await?;
|
||||
let (id, data) = EntityMini::from_entity(data);
|
||||
|
||||
let db = Surreal::new::<Ws>("0.0.0.0:8000").await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue