This commit is contained in:
ZtRXR 2024-07-22 12:32:45 +08:00
parent 14a3049ae7
commit 25571bc23b
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ test.db
test.db-journal
perf.data
setings.json
settings.json

View File

@ -14,7 +14,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();
println!("The program is starting.\nIf you want to see the log info,please set env RUST_LOG=info");
info!("DataBase is starting");
let db_info = Starter::connect_from_path("setings.json").await?;
let db_info = Starter::connect_from_path("settings.json").await?;
db_info.create_table().await.unwrap_or_else(|e: Box<dyn Error>|{
info!("The table have been created. Don't care this Error!!!!!:{}",e);