commento/api/utils_sql.go

12 lines
288 B
Go
Raw Normal View History

2019-12-28 09:12:46 +08:00
package main
import ()
// scanner is a database/sql abstraction interface that can be used with both
// *sql.Row and *sql.Rows.
type sqlScanner interface {
// Scan copies columns from the underlying query row(s) to the values
// pointed to by dest.
Scan(dest ...interface{}) error
}