37 lines
		
	
	
		
			420 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			420 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package beego
 | |
| 
 | |
| type BeeModel struct {
 | |
| 	driver string
 | |
| }
 | |
| 
 | |
| func (this *BeeModel) Insert() {
 | |
| 
 | |
| }
 | |
| 
 | |
| func (this *BeeModel) MultipleInsert() {
 | |
| 
 | |
| }
 | |
| 
 | |
| func (this *BeeModel) Update() {
 | |
| 
 | |
| }
 | |
| 
 | |
| func (this *BeeModel) Query() {
 | |
| 
 | |
| }
 | |
| 
 | |
| //Deletes from table with clauses where and using.
 | |
| func (this *BeeModel) Delete() {
 | |
| 
 | |
| }
 | |
| 
 | |
| //Start a transaction
 | |
| func (this *BeeModel) Transaction() {
 | |
| 
 | |
| }
 | |
| 
 | |
| //commit transaction
 | |
| func (this *BeeModel) Commit() {
 | |
| 
 | |
| }
 |