harness-drone/store/logs/scan.go

17 lines
433 B
Go
Raw Normal View History

2019-02-19 23:56:41 +00:00
// 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,
)
}