remove
This commit is contained in:
		
							parent
							
								
									4550899450
								
							
						
					
					
						commit
						9b829c384c
					
				
					 1 changed files with 0 additions and 10 deletions
				
			
		
							
								
								
									
										10
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								test.ts
									
										
									
									
									
								
							| 
						 | 
					@ -1,10 +0,0 @@
 | 
				
			||||||
import Knex from 'knex';
 | 
					 | 
				
			||||||
import {connectDB} from './src/database';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
async function main() {
 | 
					 | 
				
			||||||
    const db = await connectDB();
 | 
					 | 
				
			||||||
    const query = db.update({deleted_at: null}).from('document');
 | 
					 | 
				
			||||||
    console.log(query.toSQL());
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
main()
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue