Merge pull request #222 from jaytaylor/readme-cleanup
README cleanup: Consistent comment prefixing `////` for raw SQL example output.
This commit is contained in:
		
						commit
						938c09e702
					
				@ -384,14 +384,14 @@ db.Model(User{}).Updates(User{Name: "hello", Age: 18}).RowsAffected
 | 
				
			|||||||
```go
 | 
					```go
 | 
				
			||||||
// Delete an existing record
 | 
					// Delete an existing record
 | 
				
			||||||
db.Delete(&email)
 | 
					db.Delete(&email)
 | 
				
			||||||
// DELETE from emails where id=10;
 | 
					//// DELETE from emails where id=10;
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Batch Delete
 | 
					### Batch Delete
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```go
 | 
					```go
 | 
				
			||||||
db.Where("email LIKE ?", "%jinzhu%").Delete(Email{})
 | 
					db.Where("email LIKE ?", "%jinzhu%").Delete(Email{})
 | 
				
			||||||
// DELETE from emails where email LIKE "%jinhu%";
 | 
					//// DELETE from emails where email LIKE "%jinhu%";
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Soft Delete
 | 
					### Soft Delete
 | 
				
			||||||
@ -417,7 +417,7 @@ db.Unscoped().Where("age = 20").Find(&users)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Delete record permanently with Unscoped
 | 
					// Delete record permanently with Unscoped
 | 
				
			||||||
db.Unscoped().Delete(&order)
 | 
					db.Unscoped().Delete(&order)
 | 
				
			||||||
// DELETE FROM orders WHERE id=10;
 | 
					//// DELETE FROM orders WHERE id=10;
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Associations
 | 
					## Associations
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user