17 lines
433 B
Go
17 lines
433 B
Go
|
// Copyright 2019 Drone.IO Inc. All rights reserved.
|
||
|
// Use of this source code is governed by the Drone Non-Commercial License
|
||
|
// that can be found in the LICENSE file.
|
||
|
|
||
|
package logs
|
||
|
|
||
|
import "github.com/drone/drone/store/shared/db"
|
||
|
|
||
|
// helper function scans the sql.Row and copies the column
|
||
|
// values to the destination object.
|
||
|
func scanRow(scanner db.Scanner, dst *logs) error {
|
||
|
return scanner.Scan(
|
||
|
&dst.ID,
|
||
|
&dst.Data,
|
||
|
)
|
||
|
}
|