add create table unwrap

This commit is contained in:
Zengtudor 2024-07-20 00:41:14 +08:00
parent 2c61302fef
commit b7f9acca0a

View File

@ -10,7 +10,9 @@ pub mod start_db;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let db_info = Starter::connect().await?;
// db_info.create_table().await?;
db_info.create_table().await.unwrap_or_else(|e: Box<dyn Error>|{
println!("The table have been created.\nDon't care this Error:{}",e);
});
let insert_word = word_entity::ActiveModel{
id:ActiveValue::not_set(),