add create table unwrap
This commit is contained in:
		
							parent
							
								
									2c61302fef
								
							
						
					
					
						commit
						b7f9acca0a
					
				@ -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(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user