update
This commit is contained in:
parent
14a3049ae7
commit
25571bc23b
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ test.db
|
|||||||
test.db-journal
|
test.db-journal
|
||||||
perf.data
|
perf.data
|
||||||
setings.json
|
setings.json
|
||||||
|
settings.json
|
||||||
|
@ -14,7 +14,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
env_logger::init();
|
env_logger::init();
|
||||||
println!("The program is starting.\nIf you want to see the log info,please set env RUST_LOG=info");
|
println!("The program is starting.\nIf you want to see the log info,please set env RUST_LOG=info");
|
||||||
info!("DataBase is starting");
|
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>|{
|
db_info.create_table().await.unwrap_or_else(|e: Box<dyn Error>|{
|
||||||
info!("The table have been created. Don't care this Error!!!!!:{}",e);
|
info!("The table have been created. Don't care this Error!!!!!:{}",e);
|
||||||
|
Loading…
Reference in New Issue
Block a user