Skip to content

Conversation

paahaad
Copy link

@paahaad paahaad commented Jun 8, 2025

#264
Tonbo should automatically create db folder

Copy link

codecov bot commented Jun 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@crwen
Copy link
Contributor

crwen commented Jun 12, 2025

Sorry for the late response. I think the main problem is in DbOption. The path must exists when creating a Path, so it does not work even though we create the directory when building db.

let options = DbOption::new(
    Path::from_filesystem_path("./db_path/users").unwrap(), // path must exists here
    &UserSchema,
);

let db = DB::new(options, TokioExecutor::current(), UserSchema)
    .await
    .unwrap();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants