You've already forked go-sqlmock
							
							
				mirror of
				https://github.com/DATA-DOG/go-sqlmock.git
				synced 2025-10-30 23:47:46 +02:00 
			
		
		
		
	compose Rows interface with sql driver.Rows
This commit is contained in:
		
							
								
								
									
										4
									
								
								rows.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								rows.go
									
									
									
									
									
								
							| @@ -10,11 +10,9 @@ import ( | ||||
| // Rows interface allows to construct rows | ||||
| // which also satisfies database/sql/driver.Rows interface | ||||
| type Rows interface { | ||||
| 	driver.Rows // composed interface, supports sql driver.Rows | ||||
| 	AddRow(...driver.Value) Rows | ||||
| 	FromCSVString(s string) Rows | ||||
| 	Next([]driver.Value) error | ||||
| 	Columns() []string | ||||
| 	Close() error | ||||
| } | ||||
|  | ||||
| // a struct which implements database/sql/driver.Rows | ||||
|   | ||||
		Reference in New Issue
	
	Block a user