mirror of
https://gitlab.com/commento/commento.git
synced 2026-06-17 09:55:27 -04:00
utils_sql.go: add sqlScanner interface
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user